PHP 클래스 Neos\Flow\Aop\Advice\AbstractAdvice

상속: implements Neos\Flow\Aop\Advice\AdviceInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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