PHP Класс Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilegePointcutFilter

Наследование: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$filters Neos\Flow\Aop\Pointcut\PointcutFilterComposite[]
$methodPermissionCache Neos\Cache\Frontend\VariableFrontend
$methodPermissions array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$runtimeExpressionEvaluator Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator

Открытые методы

Метод Описание
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
initializeObject ( ) : void
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early so we can't rely on AOP for the property injection
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified class and method matches against the filter, i.e. if there is a policy entry to intercept this method.
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.
savePolicyCache ( ) : void Save the found matches to the cache.

Защищенные методы

Метод Описание
buildPointcutFilters ( ) : boolean Builds the needed pointcut filters for matching the policy privileges

Описание методов

buildPointcutFilters() защищенный Метод

Builds the needed pointcut filters for matching the policy privileges
protected buildPointcutFilters ( ) : boolean
Результат boolean

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

initializeObject() публичный Метод

public initializeObject ( ) : void
Результат void

injectObjectManager() публичный Метод

This object is created very early 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

matches() публичный Метод

This method also creates a cache entry for every method, to cache the associated roles and privileges.
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Name of the class to check the name of
$methodName string Name of the method to check the name of
$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 the names match, 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

savePolicyCache() публичный Метод

Save the found matches to the cache.
public savePolicyCache ( ) : void
Результат void

Описание свойств

$filters защищенное свойство

protected PointcutFilterComposite[],Neos\Flow\Aop\Pointcut $filters
Результат Neos\Flow\Aop\Pointcut\PointcutFilterComposite[]

$methodPermissionCache защищенное свойство

protected VariableFrontend,Neos\Cache\Frontend $methodPermissionCache
Результат Neos\Cache\Frontend\VariableFrontend

$methodPermissions защищенное свойство

protected array $methodPermissions
Результат array

$objectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

$runtimeExpressionEvaluator защищенное свойство

protected RuntimeExpressionEvaluator,Neos\Flow\Aop\Pointcut $runtimeExpressionEvaluator
Результат Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator