PHP Класс Neos\Flow\Aop\Advice\AbstractAdvice

Наследование: implements Neos\Flow\Aop\Advice\AdviceInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$adviceMethodName string Contains the name of the advice method
$aspectObjectName string Holds the name of the aspect object containing the advice
$dispatcher Neos\Flow\SignalSlot\Dispatcher A reference to the SignalSlot Dispatcher
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface A reference to the Object Manager
$runtimeEvaluationsDefinition array Runtime evaluations definition array
$runtimeEvaluator Closure Runtime evaluations function

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

Метод Описание
__construct ( string $aspectObjectName, string $adviceMethodName, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager = null, Closure $runtimeEvaluator = null ) Constructor
getAdviceMethodName ( ) : string Returns the advice's method name which has been passed to the constructor
getAspectObjectName ( ) : string Returns the aspect's object name which has been passed to the constructor
invoke ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed Invokes the advice method

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

Метод Описание
emitAdviceInvoked ( object $aspectObject, string $methodName, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Emits a signal when an Advice is invoked

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

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

Constructor
public __construct ( string $aspectObjectName, string $adviceMethodName, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager = null, Closure $runtimeEvaluator = null )
$aspectObjectName string Name of the aspect object containing the advice
$adviceMethodName string Name of the advice method
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface Only require if a runtime evaluations function is specified
$runtimeEvaluator Closure Runtime evaluations function

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

The advice is not proxyable, so the signal is dispatched manually here.
protected emitAdviceInvoked ( object $aspectObject, string $methodName, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$aspectObject object
$methodName string
$joinPoint Neos\Flow\Aop\JoinPointInterface
Результат void

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

Returns the advice's method name which has been passed to the constructor
public getAdviceMethodName ( ) : string
Результат string The name of the advice method

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

Returns the aspect's object name which has been passed to the constructor
public getAspectObjectName ( ) : string
Результат string The object name of the aspect

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

Invokes the advice method
public invoke ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point which is passed to the advice method
Результат mixed Result of the advice method

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

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

Contains the name of the advice method
protected string $adviceMethodName
Результат string

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

Holds the name of the aspect object containing the advice
protected string $aspectObjectName
Результат string

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

A reference to the SignalSlot Dispatcher
protected Dispatcher,Neos\Flow\SignalSlot $dispatcher
Результат Neos\Flow\SignalSlot\Dispatcher

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

A reference to the Object Manager
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

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

Runtime evaluations definition array
protected array $runtimeEvaluationsDefinition
Результат array

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

Runtime evaluations function
protected Closure $runtimeEvaluator
Результат Closure