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

Example: setting(FooPackage.configuration.option = 'AOP is cool')
상속: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$actualSettingValue mixed The value of the specified setting
$cachedResult boolean
$condition mixed The condition value to match against the configuration setting
$configurationManager Neos\Flow\Configuration\ConfigurationManager
$settingComparisonExpression string The path leading to the setting to match with

공개 메소드들

메소드 설명
__construct ( string $settingComparisonExpression ) The constructor - initializes the configuration filter with the path to a configuration option
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
injectConfigurationManager ( ConfigurationManager $configurationManager ) : void Injects the configuration manager
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified configuration option is set to TRUE or FALSE, or if it matches the specified condition
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

보호된 메소드들

메소드 설명
parseConfigurationOptionPath ( string $settingComparisonExpression ) : void Parses the given configuration path expression and sets $this->actualSettingValue and $this->condition accordingly

메소드 상세

__construct() 공개 메소드

The constructor - initializes the configuration filter with the path to a configuration option
public __construct ( string $settingComparisonExpression )
$settingComparisonExpression string Path (and optional condition) leading to the setting

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

injectConfigurationManager() 공개 메소드

Injects the configuration manager
public injectConfigurationManager ( ConfigurationManager $configurationManager ) : void
$configurationManager Neos\Flow\Configuration\ConfigurationManager
리턴 void

matches() 공개 메소드

Checks if the specified configuration option is set to TRUE or FALSE, or if it matches the specified condition
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

parseConfigurationOptionPath() 보호된 메소드

Parses the given configuration path expression and sets $this->actualSettingValue and $this->condition accordingly
protected parseConfigurationOptionPath ( string $settingComparisonExpression ) : void
$settingComparisonExpression string The configuration expression (path + optional condition)
리턴 void

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

프로퍼티 상세

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

The value of the specified setting
protected mixed $actualSettingValue
리턴 mixed

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

protected bool $cachedResult
리턴 boolean

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

The condition value to match against the configuration setting
protected mixed $condition
리턴 mixed

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

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
리턴 Neos\Flow\Configuration\ConfigurationManager

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

The path leading to the setting to match with
protected string $settingComparisonExpression
리턴 string