PHP Класс Neos\Flow\Aop\Pointcut\PointcutClassNameFilter

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

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

Свойство Тип Описание
$classFilterExpression string A regular expression to match class names
$originalExpressionString string
$reflectionService Neos\Flow\Reflection\ReflectionService

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

Метод Описание
__construct ( string $classFilterExpression ) The constructor - initializes the class filter with the class filter expression
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified class matches with the class filter pattern
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

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

__construct() публичный метод

The constructor - initializes the class filter with the class filter expression
public __construct ( string $classFilterExpression )
$classFilterExpression string A regular expression which defines which class names should match

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

injectReflectionService() публичный метод

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
Результат void

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

Checks if the specified class matches with the class filter pattern
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 - not used here
$methodDeclaringClassName string Name of the class the method was originally declared in - not used here
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection.
Результат boolean TRUE if the class matches, 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

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

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

A regular expression to match class names
protected string $classFilterExpression
Результат string

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

protected string $originalExpressionString
Результат string

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

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService