[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/types/ -> DataType.php (sommaire)

(pas de description)

Poids: 182 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

DataType:: (10 méthodes):
  setDescription()
  getDescription()
  isReference()
  setRefid()
  dieOnCircularReference()
  getCheckedRef()
  tooManyAttributes()
  noChildrenAllowed()
  circularReference()
  parsingComplete()


Classe: DataType  - X-Ref

Base class for those classes that can appear inside the build file
as stand alone data types.

This class handles the common description attribute and provides
a default implementation for reference handling and checking for
circular references that is appropriate for types that can not be
nested inside elements of the same type (i.e. patternset but not path)

setDescription($desc)   X-Ref
Sets a description of the current data type. It will be useful
in commenting what we are doing.


getDescription()   X-Ref
Pas de description

isReference()   X-Ref
Pas de description

setRefid(Reference $r)   X-Ref
Set the value of the refid attribute.

Subclasses may need to check whether any other attributes
have been set as well or child elements have been created and
thus override this method. if they do they must call parent::setRefid()

param: Reference $r
return: void

dieOnCircularReference(&$stk, Project $p)   X-Ref
Check to see whether any DataType we hold references to is
included in the Stack (which holds all DataType instances that
directly or indirectly reference this instance, including this
instance itself).

If one is included, throw a BuildException created by circularReference

This implementation is appropriate only for a DataType that
cannot hold other DataTypes as children.

The general contract of this method is that it shouldn't do
anything if checked is true and set it to true on exit.

getCheckedRef($requiredClass, $dataTypeName)   X-Ref
Pas de description

tooManyAttributes()   X-Ref
Creates an exception that indicates that refid has to be the
only attribute if it is set.


noChildrenAllowed()   X-Ref
Creates an exception that indicates that this XML element must
not have child elements if the refid attribute is set.


circularReference()   X-Ref
Creates an exception that indicates the user has generated a
loop of data types referencing each other.


parsingComplete()   X-Ref
Template method being called when the data type has been
parsed completely.

return: void



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7