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

isSelected(
\basedir $basedir, \filename $filename, \file $file
)
:
\whetherReturns true (the file is selected) only if all 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 |
|---|---|
| \whether | the file should be selected or not |