PHP 클래스 Neos\Flow\Aop\Pointcut\PointcutFilterComposite

상속: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$earlyReturn boolean
$filters An array of \Neos\Flow\Aop\Pointcut\Pointcut*Filter objects
$globalRuntimeEvaluationsDefinition An array of global runtime evaluations
$runtimeEvaluationsDefinition An array of runtime evaluations

공개 메소드들

메소드 설명
addFilter ( string $operator, Neos\Flow\Aop\Pointcut\PointcutFilterInterface $filter ) : void Adds a class filter to the composite
getRuntimeEvaluationsClosureCode ( ) : string Returns the PHP code (closure) that can evaluate the runtime evaluations
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified class and method match the registered class- and method filter patterns.
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.
setGlobalRuntimeEvaluationsDefinition ( array $runtimeEvaluations ) : void Sets static runtime evaluations for to pointcut, that will be used for every method this composite matches

보호된 메소드들

메소드 설명
buildArgumentEvaluationAccessCode ( mixed $argumentAccess, &$useGlobalObjects = false ) : string Returns the PHP code used to access one argument of a runtime evaluation
buildGlobalRuntimeEvaluationsConditionCode ( array $conditions, &$useGlobalObjects = false ) : string Returns the PHP code of the conditions used for global runtime evaluations
buildMethodArgumentsEvaluationConditionCode ( array $conditions, &$useGlobalObjects = false ) : string Returns the PHP code of the conditions used argument runtime evaluations
buildRuntimeEvaluationsConditionCode ( string $operator, array $conditions, &$useGlobalObjects = false ) : string Returns the PHP code of the conditions used for runtime evaluations

메소드 상세

addFilter() 공개 메소드

Adds a class filter to the composite
public addFilter ( string $operator, Neos\Flow\Aop\Pointcut\PointcutFilterInterface $filter ) : void
$operator string The operator for this filter
$filter Neos\Flow\Aop\Pointcut\PointcutFilterInterface A configured class filter
리턴 void

buildArgumentEvaluationAccessCode() 보호된 메소드

Returns the PHP code used to access one argument of a runtime evaluation
protected buildArgumentEvaluationAccessCode ( mixed $argumentAccess, &$useGlobalObjects = false ) : string
$argumentAccess mixed The unparsed argument access, might be string or array
리턴 string The condition code

buildGlobalRuntimeEvaluationsConditionCode() 보호된 메소드

Returns the PHP code of the conditions used for global runtime evaluations
protected buildGlobalRuntimeEvaluationsConditionCode ( array $conditions, &$useGlobalObjects = false ) : string
$conditions array Condition array
리턴 string The condition code

buildMethodArgumentsEvaluationConditionCode() 보호된 메소드

Returns the PHP code of the conditions used argument runtime evaluations
protected buildMethodArgumentsEvaluationConditionCode ( array $conditions, &$useGlobalObjects = false ) : string
$conditions array Condition array
리턴 string The arguments condition code

buildRuntimeEvaluationsConditionCode() 보호된 메소드

Returns the PHP code of the conditions used for runtime evaluations
protected buildRuntimeEvaluationsConditionCode ( string $operator, array $conditions, &$useGlobalObjects = false ) : string
$operator string The operator for the given condition
$conditions array Condition array
리턴 string The condition code

getRuntimeEvaluationsClosureCode() 공개 메소드

Returns the PHP code (closure) that can evaluate the runtime evaluations
public getRuntimeEvaluationsClosureCode ( ) : string
리턴 string The closure code

getRuntimeEvaluationsDefinition() 공개 메소드

Returns runtime evaluations for the pointcut.
public getRuntimeEvaluationsDefinition ( ) : array
리턴 array Runtime evaluations

hasRuntimeEvaluationsDefinition() 공개 메소드

Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
public hasRuntimeEvaluationsDefinition ( ) : boolean
리턴 boolean TRUE if this filter has runtime evaluations

matches() 공개 메소드

Checks if the specified class and method match the registered class- and method filter patterns.
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Name of the class to check against
$methodName string Name of the method to check against
$methodDeclaringClassName string Name of the class the method was originally declared in
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection.
리턴 boolean TRUE if class and method match the pattern, otherwise FALSE

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

setGlobalRuntimeEvaluationsDefinition() 공개 메소드

Sets static runtime evaluations for to pointcut, that will be used for every method this composite matches
public setGlobalRuntimeEvaluationsDefinition ( array $runtimeEvaluations ) : void
$runtimeEvaluations array Runtime evaluations to be added
리턴 void

프로퍼티 상세

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

protected bool $earlyReturn
리턴 boolean

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

An array of \Neos\Flow\Aop\Pointcut\Pointcut*Filter objects
protected $filters

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

An array of global runtime evaluations
protected $globalRuntimeEvaluationsDefinition

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

An array of runtime evaluations
protected $runtimeEvaluationsDefinition