void dieOnCircularReference(
&$stk,
$p)
|
|
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.
Overridden in child classes as:
- Path::dieOnCircularReference()
- Overrides the version of DataType to recurse on all DataType child elements that may have been added.
Parameters:
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()
Overridden in child classes as:
- PhingFilterReader::setRefid()
- FilterChain::setRefid()
- Mapper::setRefid()
- Make this Mapper instance a reference to another Mapper.
- AbstractFileSet::setRefid()
- Makes this instance in effect a reference to another PatternSet instance.
- Path::setRefid()
- Makes this instance in effect a reference to another Path instance.
- PatternSet::setRefid()
- Makes this instance in effect a reference to another PatternSet instance.
- FileList::setRefid()
- Makes this instance in effect a reference to another FileList instance.
Parameters: