classes/phing/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

This selector has a collection of other selectors, any of which have to select a file in order for this selector to select it.

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
\BaseSelectorContainer
author
Hans Lellelid (Phing)
author
Bruce Atherton (Ant)
package
phing.types.selectors
version
$Revision: 526 $

Methods

methodpublic  isSelected( \basedir $basedir, \filename $filename, \file $file ) : boolean
Returns true (the file is selected) if any of the other selectors agree that the file should be selected.
Parameters
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
Returns
Type Description
boolean
methodpublic  toString( ) :
Documentation was generated by DocBlox 0.13.1.