PHP Класс AbstractFileSet, symfony-1.4

TODO: - merge this with patternsets: FileSet extends PatternSet !!! requires additional mods to the parsing algo [HL] .... not sure if that really makes so much sense. I think that perhaps they should use common utility class if there really is that much shared functionality
См. также: ProjectComponent
Автор: Andreas Aderhold ([email protected])
Автор: Hans Lellelid ([email protected])
Наследование: extends DataType, implements SelectorContainer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$additionalPatterns
$defaultPatterns PatternSet
$dir
$isCaseSensitive
$selectors
$useDefaultExcludes boolean

Открытые методы

Метод Описание
__construct ( $fileset = null )
appendSelector ( FileSelector $selector ) Add a new selector into this container.
createAnd ( ) add an "And" selector entry on the selector list
createContains ( ) add a contains selector entry on the selector list
createContainsRegexp ( ) add a contains selector entry on the selector list
createCustom ( ) add an extended selector entry on the selector list
createDate ( ) add a selector date entry on the selector list
createDepend ( ) add a depends selector entry on the selector list
createDepth ( ) add a depth selector entry on the selector list
createExclude ( ) add a name entry on the exclude list
createExcludesFile ( ) add a name entry on the include files list
createFilename ( ) add a selector filename entry on the selector list
createInclude ( ) add a name entry on the include list
createIncludesFile ( ) add a name entry on the include files list
createMajority ( ) add a majority selector entry on the selector list
createNone ( ) add a "None" selector entry on the selector list
createNot ( ) add a "Not" selector entry on the selector list
createOr ( ) add an "Or" selector entry on the selector list
createPatternSet ( )
createPresent ( ) add a present selector entry on the selector list
createSelector ( ) add a "Select" selector entry on the selector list
createSize ( ) add a selector size entry on the selector list
createType ( ) add a type selector entry on the selector list
getDir ( Project $p )
getDirectoryScanner ( Project $p ) returns a reference to the dirscanner object belonging to this fileset
getRef ( Project $p ) Performs the check for circular references and returns the referenced FileSet.
getSelectors ( Project $p ) : an Returns the set of selectors as an array.
hasPatterns ( ) : boolean Indicates whether there are any patterns here.
hasSelectors ( ) : boolean Indicates whether there are any selectors here.
selectorCount ( ) : integer Gives the count of the number of selectors in this container
selectorElements ( ) : array Returns an array for accessing the set of selectors.
setCaseSensitive ( $isCaseSensitive ) Sets case sensitivity of the file system
setDefaultexcludes ( $useDefaultExcludes ) Sets whether default exclusions should be used or not.
setDir ( $dir )
setExcludes ( $excludes ) Sets the set of exclude patterns. Patterns may be separated by a comma or a space.
setExcludesfile ( $excl ) Sets the name of the file containing the includes patterns.
setIncludes ( $includes ) Sets the set of include patterns. Patterns may be separated by a comma or a space.
setIncludesfile ( $incl ) Sets the name of the file containing the includes patterns.
setRefid ( Reference $r ) Makes this instance in effect a reference to another PatternSet instance.

Защищенные методы

Метод Описание
setupDirectoryScanner ( DirectoryScanner $ds, Project $p ) feed dirscanner with infos defined by this fileset

Описание методов

__construct() публичный Метод

public __construct ( $fileset = null )

appendSelector() публичный Метод

Add a new selector into this container.
public appendSelector ( FileSelector $selector )
$selector FileSelector

createAnd() публичный Метод

add an "And" selector entry on the selector list
public createAnd ( )

createContains() публичный Метод

add a contains selector entry on the selector list
public createContains ( )

createContainsRegexp() публичный Метод

add a contains selector entry on the selector list

createCustom() публичный Метод

add an extended selector entry on the selector list
public createCustom ( )

createDate() публичный Метод

add a selector date entry on the selector list
public createDate ( )

createDepend() публичный Метод

add a depends selector entry on the selector list
public createDepend ( )

createDepth() публичный Метод

add a depth selector entry on the selector list
public createDepth ( )

createExclude() публичный Метод

add a name entry on the exclude list
public createExclude ( )

createExcludesFile() публичный Метод

add a name entry on the include files list
public createExcludesFile ( )

createFilename() публичный Метод

add a selector filename entry on the selector list
public createFilename ( )

createInclude() публичный Метод

add a name entry on the include list
public createInclude ( )

createIncludesFile() публичный Метод

add a name entry on the include files list
public createIncludesFile ( )

createMajority() публичный Метод

add a majority selector entry on the selector list
public createMajority ( )

createNone() публичный Метод

add a "None" selector entry on the selector list
public createNone ( )

createNot() публичный Метод

add a "Not" selector entry on the selector list
public createNot ( )

createOr() публичный Метод

add an "Or" selector entry on the selector list
public createOr ( )

createPatternSet() публичный Метод

public createPatternSet ( )

createPresent() публичный Метод

add a present selector entry on the selector list
public createPresent ( )

createSelector() публичный Метод

add a "Select" selector entry on the selector list
public createSelector ( )

createSize() публичный Метод

add a selector size entry on the selector list
public createSize ( )

createType() публичный Метод

add a type selector entry on the selector list
public createType ( )

getDir() публичный Метод

public getDir ( Project $p )
$p Project

getDirectoryScanner() публичный Метод

returns a reference to the dirscanner object belonging to this fileset
public getDirectoryScanner ( Project $p )
$p Project

getRef() публичный Метод

Performs the check for circular references and returns the referenced FileSet.
public getRef ( Project $p )
$p Project

getSelectors() публичный Метод

Returns the set of selectors as an array.
public getSelectors ( Project $p ) : an
$p Project
Результат an array of selectors in this container

hasPatterns() публичный Метод

Indicates whether there are any patterns here.
public hasPatterns ( ) : boolean
Результат boolean Whether any patterns are in this container.

hasSelectors() публичный Метод

Indicates whether there are any selectors here.
public hasSelectors ( ) : boolean
Результат boolean Whether any selectors are in this container

selectorCount() публичный Метод

Gives the count of the number of selectors in this container
public selectorCount ( ) : integer
Результат integer The number of selectors in this container

selectorElements() публичный Метод

Returns an array for accessing the set of selectors.
public selectorElements ( ) : array
Результат array The array of selectors

setCaseSensitive() публичный Метод

Sets case sensitivity of the file system
public setCaseSensitive ( $isCaseSensitive )

setDefaultexcludes() публичный Метод

Sets whether default exclusions should be used or not.
public setDefaultexcludes ( $useDefaultExcludes )
$useDefaultExcludes "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.

setDir() публичный Метод

public setDir ( $dir )

setExcludes() публичный Метод

Sets the set of exclude patterns. Patterns may be separated by a comma or a space.
public setExcludes ( $excludes )

setExcludesfile() публичный Метод

Sets the name of the file containing the includes patterns.
public setExcludesfile ( $excl )
$excl The file to fetch the exclude patterns from.

setIncludes() публичный Метод

Sets the set of include patterns. Patterns may be separated by a comma or a space.
public setIncludes ( $includes )

setIncludesfile() публичный Метод

Sets the name of the file containing the includes patterns.
public setIncludesfile ( $incl )
$incl The file to fetch the include patterns from.

setRefid() публичный Метод

You must not set another attribute or nest elements inside this element if you make it a reference.
public setRefid ( Reference $r )
$r Reference

setupDirectoryScanner() защищенный Метод

feed dirscanner with infos defined by this fileset
protected setupDirectoryScanner ( DirectoryScanner $ds, Project $p )
$ds DirectoryScanner
$p Project

Описание свойств

$additionalPatterns публичное свойство

public $additionalPatterns

$defaultPatterns публичное свойство

public PatternSet $defaultPatterns
Результат PatternSet

$dir публичное свойство

public $dir

$isCaseSensitive публичное свойство

public $isCaseSensitive

$selectors публичное свойство

public $selectors

$useDefaultExcludes публичное свойство

public bool $useDefaultExcludes
Результат boolean