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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$adviceIndex integer The number of the next advice which will be invoked on a proceed() call
$advices array An array of Advice objects which form the advice chain

공개 메소드들

메소드 설명
__construct ( array $advices ) Initializes the advice chain
proceed ( Neos\Flow\Aop\JoinPointInterface &$joinPoint ) : mixed An advice usually calls (but doesn't have to necessarily) this method in order to proceed with the next advice in the chain. If no advice is left in the chain, the proxy classes' method invokeJoinpoint() will finally be called.
rewind ( ) : void Re-initializes the index to start a new run through the advice chain

메소드 상세

__construct() 공개 메소드

Initializes the advice chain
public __construct ( array $advices )
$advices array An array of AdviceInterface compatible objects which form the chain of advices

proceed() 공개 메소드

An advice usually calls (but doesn't have to necessarily) this method in order to proceed with the next advice in the chain. If no advice is left in the chain, the proxy classes' method invokeJoinpoint() will finally be called.
public proceed ( Neos\Flow\Aop\JoinPointInterface &$joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point (ie. the context)
리턴 mixed Result of the advice or the original method of the target class

rewind() 공개 메소드

Re-initializes the index to start a new run through the advice chain
public rewind ( ) : void
리턴 void

프로퍼티 상세

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

The number of the next advice which will be invoked on a proceed() call
protected int $adviceIndex
리턴 integer

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

An array of Advice objects which form the advice chain
protected array $advices
리턴 array