PHP Class Neos\Flow\Aop\Pointcut\PointcutSettingFilter

Example: setting(FooPackage.configuration.option = 'AOP is cool')
Inheritance: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
parseConfigurationOptionPath ( string $settingComparisonExpression ) : void Parses the given configuration path expression and sets $this->actualSettingValue and $this->condition accordingly

Method Details

__construct() public méthode

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() public méthode

Returns runtime evaluations for the pointcut.
public getRuntimeEvaluationsDefinition ( ) : array
Résultat array Runtime evaluations

hasRuntimeEvaluationsDefinition() public méthode

Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
public hasRuntimeEvaluationsDefinition ( ) : boolean
Résultat boolean TRUE if this filter has runtime evaluations

injectConfigurationManager() public méthode

Injects the configuration manager
public injectConfigurationManager ( ConfigurationManager $configurationManager ) : void
$configurationManager Neos\Flow\Configuration\ConfigurationManager
Résultat void

matches() public méthode

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.
Résultat boolean TRUE if the class matches, otherwise FALSE

parseConfigurationOptionPath() protected méthode

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)
Résultat void

reduceTargetClassNames() public méthode

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex Neos\Flow\Aop\Builder\ClassNameIndex
Résultat Neos\Flow\Aop\Builder\ClassNameIndex

Property Details

$actualSettingValue protected_oe property

The value of the specified setting
protected mixed $actualSettingValue
Résultat mixed

$cachedResult protected_oe property

protected bool $cachedResult
Résultat boolean

$condition protected_oe property

The condition value to match against the configuration setting
protected mixed $condition
Résultat mixed

$configurationManager protected_oe property

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
Résultat Neos\Flow\Configuration\ConfigurationManager

$settingComparisonExpression protected_oe property

The path leading to the setting to match with
protected string $settingComparisonExpression
Résultat string