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

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

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

Свойство Тип Описание
$methodArgumentConstraints Array with constraints for method arguments
$methodNameFilterExpression The method name filter expression
$methodVisibility The method visibility
$reflectionService Neos\Flow\Reflection\ReflectionService
$systemLogger Neos\Flow\Log\SystemLoggerInterface

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

Метод Описание
__construct ( string $methodNameFilterExpression, string $methodVisibility = null, array $methodArgumentConstraints = [] ) Constructor - initializes the filter with the name filter pattern
getMethodArgumentConstraints ( ) : array Returns the method argument constraints
getMethodNameFilterExpression ( ) : string Returns the method name filter expression
getMethodVisibility ( ) : string Returns the method visibility
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for a previously matched pointcut
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified method matches against the method name expression.
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

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

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

Constructor - initializes the filter with the name filter pattern
public __construct ( string $methodNameFilterExpression, string $methodVisibility = null, array $methodArgumentConstraints = [] )
$methodNameFilterExpression string A regular expression which filters method names
$methodVisibility string The method visibility modifier (public, protected or private). Specifiy NULL if you don't care.
$methodArgumentConstraints array array of method constraints

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

Returns the method argument constraints
public getMethodArgumentConstraints ( ) : array
Результат array

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

Returns the method name filter expression
public getMethodNameFilterExpression ( ) : string
Результат string

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

Returns the method visibility
public getMethodVisibility ( ) : string
Результат string

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

Returns runtime evaluations for a previously matched 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

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

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
Результат void

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

Returns TRUE if method name, visibility and arguments constraints match and the target method is not final.
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Ignored in this pointcut filter
$methodName string Name of the method to match 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 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

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

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

Array with constraints for method arguments
protected $methodArgumentConstraints

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

The method name filter expression
protected $methodNameFilterExpression

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

The method visibility
protected $methodVisibility

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

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

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

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Результат Neos\Flow\Log\SystemLoggerInterface