types/selectors/DepthSelector.php

Show: inherited
Table of Contents

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

Package: phing\types\selectors

Selector that filters files based on the how deep in the directory tree they are.

Parent(s)
\BaseExtendSelector < \BaseSelector < \DataType < \ProjectComponent
Author
Hans Lellelid (Phing)  
Author
Bruce Atherton (Ant)  
Version
$Revision: 526 $  

Constants

Constant  MIN_KEY = "min"
Constant  MAX_KEY = "max"

Properties

Propertypublic  $max= '-1'
Default value-1Details
Type
n/a
Propertypublic  $min= '-1'
Default value-1Details
Type
n/a

Methods

methodpubliccircularReference( ) : void

methodpublicdieOnCircularReference( ) : void

methodpublicgetCheckedRef( ) : void

methodpublicgetDescription( ) : void

methodpublicgetError( ) : void

methodprotectedgetParameters( ) : void

methodpublicgetProject( ) : void

methodpublicisReference( ) : void

methodpublicisSelected( \basedir $basedir, \filename $filename, \file $file ) : \whether

The 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.

Parameters
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

Returns
Type Description
\whether the file should be selected or not
methodpubliclog( ) : void

methodpublicnoChildrenAllowed( ) : void

methodpublicparsingComplete( ) : void

methodpublicsetDescription( ) : void

methodpublicsetError( ) : void

methodpublicsetMax( \min $max ) : void

The minimum depth below the basedir before a file is selected.

Parameters
Name Type Description
$max \min

maximum directory levels below basedir to go

methodpublicsetMin( \min $min ) : void

The minimum depth below the basedir before a file is selected.

Parameters
Name Type Description
$min \min

minimum directory levels below basedir to go

methodpublicsetParameters( \parameters $parameters ) : void

When using this as a custom selector, this method will be called.

It translates each parameter into the appropriate setXXX() call.

Parameters
Name Type Description
$parameters \parameters

the complete set of parameters for this selector

methodpublicsetProject( ) : void

methodpublicsetRefid( ) : void

methodpublictoString( ) : void

methodpublictooManyAttributes( ) : void

methodpublicvalidate( ) : void

methodpublicverifySettings( ) : void

Checks to make sure all settings are kosher. In this case, it means that the max depth is not lower than the min depth.

Documentation was generated by DocBlox 0.17.1.