classes/phing/types/selectors/BaseSelector.php
A convenience base class that you can subclass Selectors from. It provides some helpful common behaviour. Note that there is no need for Selectors to inherit from this class, it is only necessary that they implement FileSelector.
- author
- Bruce Atherton
- package
- phing.types.selectors
\BaseSelector
A convenience base class that you can subclass Selectors from. It provides some helpful common behaviour. Note that there is no need for Selectors to inherit from this class, it is only necessary that they implement FileSelector.
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
- \DataType
- Implements
- \FileSelector
- author
- Bruce Atherton
- package
- phing.types.selectors
- version
- $Revision: 526 $
Properties
Methods

setError(
\msg $msg
)
:
Allows all selectors to indicate a setup error. Note that only
the first error message is recorded.
| Name | Type | Description |
|---|---|---|
| $msg | \msg | The error message any BuildException should throw. |

validate(
)
:
Subclasses can use this to throw the requisite exception
in isSelected() in the case of an error condition.