types/selectors/OrSelector.php
This selector has a collection of other selectors, any of which have to select a file in order for this selector to select it.
- Author
- Hans Lellelid
(Phing) - Author
- Bruce Atherton
(Ant) - Package
- phing.types.selectors
\OrSelector
Package: phing\types\selectors
This selector has a collection of other selectors, any of which have to select a file in order for this selector to select it.
- Parent(s)
- \BaseSelectorContainer < \BaseSelector < \DataType < \ProjectComponent
- Author
- Hans Lellelid
(Phing) - Author
- Bruce Atherton
(Ant)
Methods

isSelected(
\basedir $basedir, \filename $filename, \file $file
)
:
booleanReturns true (the file is selected) if any of the other selectors agree that the file should be selected.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $basedir | \basedir | the base directory the scan is being done from |
| $filename | \filename | the name of the file to check |
| $file | \file | a PhingFile object for the filename that the selector can use |
| Type | Description |
|---|---|
| boolean | Whether the file should be selected or not |