PHP Класс Neos\Flow\Aop\AspectContainer

The aspect class may contain advices and pointcut declarations. Aspect classes are wrapped by this Aspect Container. For each advice a pointcut expression (not declaration!) is required to define when an advice should apply. The combination of advice and pointcut expression is called "advisor". A pointcut declaration only contains a pointcut expression and is used to make pointcut expressions reusable and combinable. An introduction declaration on the class level contains an interface name and a pointcut expression and is used to introduce a new interface to the target class. If used on a property an introduction contains a pointcut expression and is used to introduce the annotated property into the target class.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$advisors array An array of \Neos\Flow\Aop\Advisor objects
$cachedTargetClassNameCandidates Neos\Flow\Aop\Builder\ClassNameIndex
$className string
$interfaceIntroductions array An array of \Neos\Flow\Aop\InterfaceIntroduction objects
$pointcuts array An array of explicitly declared \Neos\Flow\Pointcut objects
$propertyIntroductions array An array of \Neos\Flow\Aop\PropertyIntroduction objects
$traitIntroductions array An array of \Neos\Flow\Aop\TraitIntroduction objects

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

Метод Описание
__construct ( string $className ) The constructor
addAdvisor ( Advisor $advisor ) : void Adds an advisor to this aspect container
addInterfaceIntroduction ( InterfaceIntroduction $introduction ) : void Adds an introduction declaration to this aspect container
addPointcut ( Pointcut $pointcut ) : void Adds a pointcut (from a pointcut declaration) to this aspect container
addPropertyIntroduction ( PropertyIntroduction $introduction ) : void Adds an introduction declaration to this aspect container
addTraitIntroduction ( TraitIntroduction $introduction ) : void Adds an introduction declaration to this aspect container
getAdvisors ( ) : array Returns the advisors which were defined in the aspect
getCachedTargetClassNameCandidates ( ) : ClassNameIndex
getClassName ( ) : string Returns the name of the aspect class
getInterfaceIntroductions ( ) : array Returns the interface introductions which were defined in the aspect
getPointcuts ( ) : array Returns the pointcuts which were declared in the aspect. This does not contain the pointcuts which were made out of the pointcut expressions for the advisors!
getPropertyIntroductions ( ) : array Returns the property introductions which were defined in the aspect
getTraitIntroductions ( ) : array Returns the trait introductions which were defined in the aspect
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

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

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

The constructor
public __construct ( string $className )
$className string Name of the aspect class

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

Adds an advisor to this aspect container
public addAdvisor ( Advisor $advisor ) : void
$advisor Advisor The advisor to add
Результат void

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

Adds an introduction declaration to this aspect container
public addInterfaceIntroduction ( InterfaceIntroduction $introduction ) : void
$introduction InterfaceIntroduction
Результат void

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

Adds a pointcut (from a pointcut declaration) to this aspect container
public addPointcut ( Pointcut $pointcut ) : void
$pointcut Neos\Flow\Aop\Pointcut\Pointcut The pointcut to add
Результат void

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

Adds an introduction declaration to this aspect container
public addPropertyIntroduction ( PropertyIntroduction $introduction ) : void
$introduction PropertyIntroduction
Результат void

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

Adds an introduction declaration to this aspect container
public addTraitIntroduction ( TraitIntroduction $introduction ) : void
$introduction TraitIntroduction
Результат void

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

Returns the advisors which were defined in the aspect
public getAdvisors ( ) : array
Результат array Array of \Neos\Flow\Aop\Advisor objects

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

public getCachedTargetClassNameCandidates ( ) : ClassNameIndex
Результат Neos\Flow\Aop\Builder\ClassNameIndex

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

Returns the name of the aspect class
public getClassName ( ) : string
Результат string Name of the aspect class

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

Returns the interface introductions which were defined in the aspect
public getInterfaceIntroductions ( ) : array
Результат array Array of \Neos\Flow\Aop\InterfaceIntroduction objects

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

Returns the pointcuts which were declared in the aspect. This does not contain the pointcuts which were made out of the pointcut expressions for the advisors!
public getPointcuts ( ) : array
Результат array Array of \Neos\Flow\Aop\Pointcut\Pointcut objects

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

Returns the property introductions which were defined in the aspect
public getPropertyIntroductions ( ) : array
Результат array Array of \Neos\Flow\Aop\PropertyIntroduction objects

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

Returns the trait introductions which were defined in the aspect
public getTraitIntroductions ( ) : array
Результат array Array of \Neos\Flow\Aop\TraitIntroduction objects

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

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex Neos\Flow\Aop\Builder\ClassNameIndex
Результат Neos\Flow\Aop\Builder\ClassNameIndex

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

$advisors защищенное свойство

An array of \Neos\Flow\Aop\Advisor objects
protected array $advisors
Результат array

$cachedTargetClassNameCandidates защищенное свойство

protected ClassNameIndex,Neos\Flow\Aop\Builder $cachedTargetClassNameCandidates
Результат Neos\Flow\Aop\Builder\ClassNameIndex

$className защищенное свойство

protected string $className
Результат string

$interfaceIntroductions защищенное свойство

An array of \Neos\Flow\Aop\InterfaceIntroduction objects
protected array $interfaceIntroductions
Результат array

$pointcuts защищенное свойство

An array of explicitly declared \Neos\Flow\Pointcut objects
protected array $pointcuts
Результат array

$propertyIntroductions защищенное свойство

An array of \Neos\Flow\Aop\PropertyIntroduction objects
protected array $propertyIntroductions
Результат array

$traitIntroductions защищенное свойство

An array of \Neos\Flow\Aop\TraitIntroduction objects
protected array $traitIntroductions
Результат array