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

We expect that ALL runtime expressions are regenerated during compiletime. This currently does not support adding of expressions. See shutdownObject()
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$newExpressions array Newly added expressions.
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$runtimeExpressions array Currently existing runtime expressions loaded from cache.
$runtimeExpressionsCache Neos\Cache\Frontend\PhpFrontend

공개 메소드들

메소드 설명
addExpression ( string $privilegeIdentifier, string $expression ) : string Add expression to the evaluator
evaluate ( string $privilegeIdentifier, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed Evaluate an expression with the given JoinPoint
flush ( ) : void Flush all runtime expressions
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early and is part of the blacklisted "Neos\Flow\Aop" namespace so we can't rely on AOP for the property injection.
saveRuntimeExpressions ( ) : void Shutdown the Evaluator and save created expressions overwriting any existing expressions

보호된 메소드들

메소드 설명
generateExpressionFunctionName ( string $privilegeIdentifier ) : string

메소드 상세

addExpression() 공개 메소드

Add expression to the evaluator
public addExpression ( string $privilegeIdentifier, string $expression ) : string
$privilegeIdentifier string MD5 hash that identifies a privilege
$expression string
리턴 string

evaluate() 공개 메소드

Evaluate an expression with the given JoinPoint
public evaluate ( string $privilegeIdentifier, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$privilegeIdentifier string MD5 hash that identifies a privilege
$joinPoint Neos\Flow\Aop\JoinPointInterface
리턴 mixed

flush() 공개 메소드

Flush all runtime expressions
public flush ( ) : void
리턴 void

generateExpressionFunctionName() 보호된 메소드

protected generateExpressionFunctionName ( string $privilegeIdentifier ) : string
$privilegeIdentifier string MD5 hash that identifies a privilege
리턴 string

injectObjectManager() 공개 메소드

This object is created very early and is part of the blacklisted "Neos\Flow\Aop" namespace so we can't rely on AOP for the property injection.
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 void

saveRuntimeExpressions() 공개 메소드

Shutdown the Evaluator and save created expressions overwriting any existing expressions
public saveRuntimeExpressions ( ) : void
리턴 void

프로퍼티 상세

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

Newly added expressions.
protected array $newExpressions
리턴 array

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

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

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

Currently existing runtime expressions loaded from cache.
protected array $runtimeExpressions
리턴 array

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

protected PhpFrontend,Neos\Cache\Frontend $runtimeExpressionsCache
리턴 Neos\Cache\Frontend\PhpFrontend