PHP 클래스 Neos\Flow\Mvc\RequestMatcher

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$parentMatcher RequestMatcher 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 ActionRequest 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 ( ActionRequest $actionRequest = null, RequestMatcher $parentMatcher = null )
addWeight ( integer $weight ) : void Add a weight to the total
getMainRequest ( ) : RequestMatcher Get a new RequestMatcher for the Request's MainRequest
getParentRequest ( ) : RequestMatcher 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

메소드 상세

__construct() 공개 메소드

public __construct ( ActionRequest $actionRequest = null, RequestMatcher $parentMatcher = null )
$actionRequest ActionRequest
$parentMatcher RequestMatcher

addWeight() 공개 메소드

Add a weight to the total
public addWeight ( integer $weight ) : void
$weight integer
리턴 void

getMainRequest() 공개 메소드

Get a new RequestMatcher for the Request's MainRequest
public getMainRequest ( ) : RequestMatcher
리턴 RequestMatcher

getParentRequest() 공개 메소드

Get a new RequestMatcher for the Request's ParentRequest
public getParentRequest ( ) : RequestMatcher
리턴 RequestMatcher

getWeight() 공개 메소드

Return the current weight for this match
public getWeight ( ) : integer
리턴 integer

isAction() 공개 메소드

Check if the current Request's Action equals the argument
public isAction ( string $action ) : boolean
$action string
리턴 boolean

isController() 공개 메소드

Check if the current Request's Controller equals the argument
public isController ( string $controller ) : boolean
$controller string
리턴 boolean

isFormat() 공개 메소드

Check if the current Request's Format equals the argument
public isFormat ( string $format ) : boolean
$format string
리턴 boolean

isPackage() 공개 메소드

Check if the current Request's Package equals the argument
public isPackage ( string $package ) : boolean
$package string
리턴 boolean

isSubPackage() 공개 메소드

Check if the current Request's SubPackage equals the argument
public isSubPackage ( string $subPackage ) : boolean
$subPackage string
리턴 boolean

matchRequestProperty() 보호된 메소드

Compare a request propertyValue against an expected value and add the weight if it's TRUE
protected matchRequestProperty ( string $propertyName, string $expectedValue, integer $weight ) : boolean
$propertyName string
$expectedValue string
$weight integer
리턴 boolean

resetWeight() 공개 메소드

Reset the match weight
public resetWeight ( ) : void
리턴 void

프로퍼티 상세

$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
protected RequestMatcher,Neos\Flow\Mvc $parentMatcher
리턴 RequestMatcher

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

If the Request is NULL this class will always return FALSE. This case is primarily needed if no parentRequest exists.
protected ActionRequest,Neos\Flow\Mvc $request
리턴 ActionRequest

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

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.
protected int $weight
리턴 integer