classes/phing/types/selectors/BaseSelectorContainer.php
\BaseSelectorContainer
This is the base class for selectors that can contain other selectors.
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)
- Extends from
- \BaseSelector
- Implements
- \SelectorContainer
- author
- Bruce Atherton (Ant)
- package
- phing.types.selectors
- version
- $Revision: 526 $
Properties
Methods

appendSelector(
\selector $selector
)
:
\theAdd a new selector into this container.
| Name | Type | Description |
|---|---|---|
| $selector | \selector | the new selector to add |
| Type | Description |
|---|---|
| \the |

getSelectors(
$p
)
:
Returns a copy of the selectors as an array.
| Name | Type | Description |
|---|---|---|
| $p |

toString(
)
:
\commaConvert the Selectors within this container to a string. This will
just be a helper class for the subclasses that put their own name
around the contents listed here.
| Type | Description |
|---|---|
| \comma |

validate(
)
:
This implementation validates the container by calling verifySettings() and then validates each contained selector provided that the selector implements the validate interface.
Ordinarily, this will validate all the elements of a selector container even if the isSelected() method of some elements is never called. This has two effects:
- Validation will often occur twice.
- Since it is not required that selectors derive from BaseSelector, there could be selectors in the container whose error conditions are not detected if their isSelected() call is never made.