classes/phing/types/selectors/DepthSelector.php
Selector that filters files based on the how deep in the directory tree they are.
- author
- Hans Lellelid
(Phing) - author
- Bruce Atherton
(Ant) - package
- phing.types.selectors
- version
- $Revision: 526 $
\DepthSelector
Selector that filters files based on the how deep in the directory tree they are.
It provides support for gathering the parameters together as well as for assigning an error message and throwing a build exception if an error is detected.
- Extends from
- \BaseExtendSelector
- author
- Hans Lellelid
(Phing) - author
- Bruce Atherton
(Ant) - package
- phing.types.selectors
- version
- $Revision: 526 $
Constants
Properties
Methods

isSelected(
\basedir $basedir, \filename $filename, \file $file
)
:
\whetherThe heart of the matter. This is where the selector gets to decide
on the inclusion of a file in a particular fileset. Most of the work
for this selector is offloaded into SelectorUtils, a static class
that provides the same services for both FilenameSelector and
DirectoryScanner.
| Name | Type | Description |
|---|---|---|
| $basedir | \basedir | the base directory the scan is being done from |
| $filename | \filename | is the name of the file to check |
| $file | \file | is a PhingFile object the selector can use |
| Type | Description |
|---|---|
| \whether |

setMax(
\min $max
)
:
The minimum depth below the basedir before a file is selected.
| Name | Type | Description |
|---|---|---|
| $max | \min | maximum directory levels below basedir to go |

setMin(
\min $min
)
:
The minimum depth below the basedir before a file is selected.
| Name | Type | Description |
|---|---|---|
| $min | \min | minimum directory levels below basedir to go |

setParameters(
\parameters $parameters
)
:
When using this as a custom selector, this method will be called.
It translates each parameter into the appropriate setXXX() call.
| Name | Type | Description |
|---|---|---|
| $parameters | \parameters | the complete set of parameters for this selector |