Свойство | Тип | Описание | |
---|---|---|---|
$parentMatcher | This property is set if parentRequest or mainRequest is used. The main purpose is to properly track the weight of the parentRequest and mainRequest Matchers through the addWeight method | ||
$request | If the Request is NULL this class will always return FALSE. This case is primarily needed if no parentRequest exists. | ||
$weight | integer | The weight is a value that's added up through various matching functions in here. This is needed to have a way to determine, how specific a configuration Method is because that's how the configuration will be sorted. |
Метод | Описание | |
---|---|---|
__construct ( |
||
addWeight ( integer $weight ) : void | Add a weight to the total | |
getMainRequest ( ) : |
Get a new RequestMatcher for the Request's MainRequest | |
getParentRequest ( ) : |
Get a new RequestMatcher for the Request's ParentRequest | |
getWeight ( ) : integer | Return the current weight for this match | |
isAction ( string $action ) : boolean | Check if the current Request's Action equals the argument | |
isController ( string $controller ) : boolean | Check if the current Request's Controller equals the argument | |
isFormat ( string $format ) : boolean | Check if the current Request's Format equals the argument | |
isPackage ( string $package ) : boolean | Check if the current Request's Package equals the argument | |
isSubPackage ( string $subPackage ) : boolean | Check if the current Request's SubPackage equals the argument | |
resetWeight ( ) : void | Reset the match weight |
Метод | Описание | |
---|---|---|
matchRequestProperty ( string $propertyName, string $expectedValue, integer $weight ) : boolean | Compare a request propertyValue against an expected value and add the weight if it's TRUE |
public __construct ( |
||
$actionRequest | ||
$parentMatcher |
public getMainRequest ( ) : |
||
Результат |
public getParentRequest ( ) : |
||
Результат |
public isController ( string $controller ) : boolean | ||
$controller | string | |
Результат | boolean |
public isSubPackage ( string $subPackage ) : boolean | ||
$subPackage | string | |
Результат | boolean |
protected RequestMatcher,Neos\Flow\Mvc $parentMatcher | ||
Результат |
protected ActionRequest,Neos\Flow\Mvc $request | ||
Результат |
protected int $weight | ||
Результат | integer |