PHP Класс Neos\Flow\Aop\Builder\ClassNameIndex

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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