PHP 클래스 Neos\Flow\Aop\Builder\ClassNameIndex

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$classNames array Indexed array by class name

공개 메소드들

메소드 설명
__construct ( array $classNames = [] ) Constructor. Note: If you pass a data array here, make sure to key sort it before!
applyIntersect ( ClassNameIndex $classNameIndex ) : void Sets this index to all class names which are present currently and contained in the given index
applyUnion ( ClassNameIndex $classNameIndex ) : void Sets this index to all class names which are either already present or are contained in the given index
count ( ) : integer
filterByPrefix ( string $prefixFilter ) : ClassNameIndex Returns a new index object which contains all class names of this index starting with the given prefix
getClassNames ( ) : array Returns the class names contained in this index
hasClassName ( string $className ) : boolean Checks, if a class name is contained in this index
intersect ( ClassNameIndex $classNameIndex ) : ClassNameIndex Returns a new index object with all class names contained in this and the given index
setClassNames ( array $classNames ) : void Set the data of this index to the given class names. Note: Make sure to sort the array before!
sort ( ) : array
union ( ClassNameIndex $classNameIndex ) : ClassNameIndex Returns a new index object containing all class names of this index and the given one

메소드 상세

__construct() 공개 메소드

Constructor. Note: If you pass a data array here, make sure to key sort it before!
public __construct ( array $classNames = [] )
$classNames array Array with class names as keys

applyIntersect() 공개 메소드

Sets this index to all class names which are present currently and contained in the given index
public applyIntersect ( ClassNameIndex $classNameIndex ) : void
$classNameIndex ClassNameIndex
리턴 void

applyUnion() 공개 메소드

Sets this index to all class names which are either already present or are contained in the given index
public applyUnion ( ClassNameIndex $classNameIndex ) : void
$classNameIndex ClassNameIndex
리턴 void

count() 공개 메소드

public count ( ) : integer
리턴 integer The number of class names contained in this index

filterByPrefix() 공개 메소드

Returns a new index object which contains all class names of this index starting with the given prefix
public filterByPrefix ( string $prefixFilter ) : ClassNameIndex
$prefixFilter string A prefix string to filter the class names of this index
리턴 ClassNameIndex A new index object

getClassNames() 공개 메소드

Returns the class names contained in this index
public getClassNames ( ) : array
리턴 array An array of class names contained in this index

hasClassName() 공개 메소드

Checks, if a class name is contained in this index
public hasClassName ( string $className ) : boolean
$className string The class name to check for
리턴 boolean TRUE, if the given class name is contained in this index

intersect() 공개 메소드

Returns a new index object with all class names contained in this and the given index
public intersect ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex ClassNameIndex
리턴 ClassNameIndex A new index object

setClassNames() 공개 메소드

Set the data of this index to the given class names. Note: Make sure to sort the array before!
public setClassNames ( array $classNames ) : void
$classNames array
리턴 void

sort() 공개 메소드

public sort ( ) : array
리턴 array An key sorted array with all class names of this index as keys

union() 공개 메소드

Returns a new index object containing all class names of this index and the given one
public union ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex ClassNameIndex
리턴 ClassNameIndex A new index object

프로퍼티 상세

$classNames 보호되어 있는 프로퍼티

Indexed array by class name
protected array $classNames
리턴 array