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()
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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