PHP 클래스 Neos\Flow\Mvc\Routing\DynamicRoutePart

상속: extends AbstractRoutePart, implements Neos\Flow\Mvc\Routing\DynamicRoutePartInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$splitString string If it is empty, Route Part will be equal to the remaining request path.

공개 메소드들

메소드 설명
match ( string &$routePath ) : boolean Checks whether this Dynamic Route Part corresponds to the given $routePath.
resolve ( array &$routeValues ) : boolean Checks whether $routeValues contains elements which correspond to this Dynamic Route Part.
setSplitString ( string $splitString ) : void Sets split string of the Route Part.

보호된 메소드들

메소드 설명
findValueToMatch ( string $routePath ) : string Returns the first part of $routePath.
findValueToResolve ( array $routeValues ) : string | array Returns the route value of the current route part.
matchValue ( string $value ) : boolean Checks, whether given value can be matched.
removeMatchingPortionFromRequestPath ( string &$routePath, string $valueToMatch ) : void Removes matching part from $routePath.
resolveValue ( mixed $value ) : boolean Checks, whether given value can be resolved and if so, sets $this->value to the resolved value.

메소드 상세

findValueToMatch() 보호된 메소드

If a split string is set, only the first part of the value until location of the splitString is returned. This method can be overridden by custom RoutePartHandlers to implement custom matching mechanisms.
protected findValueToMatch ( string $routePath ) : string
$routePath string The request path to be matched
리턴 string value to match, or an empty string if $routePath is empty or split string was not found

findValueToResolve() 보호된 메소드

This method can be overridden by custom RoutePartHandlers to implement custom resolving mechanisms.
protected findValueToResolve ( array $routeValues ) : string | array
$routeValues array An array with key/value pairs to be resolved by Dynamic Route Parts.
리턴 string | array value to resolve.

match() 최종 공개 메소드

On successful match this method sets $this->value to the corresponding uriPart and shortens $routePath respectively.
final public match ( string &$routePath ) : boolean
$routePath string The request path to be matched - without query parameters, host and fragment.
리턴 boolean TRUE if Route Part matched $routePath, otherwise FALSE.

matchValue() 보호된 메소드

In the case of default Dynamic Route Parts a value matches when it's not empty. This method can be overridden by custom RoutePartHandlers to implement custom matching mechanisms.
protected matchValue ( string $value ) : boolean
$value string value to match
리턴 boolean TRUE if value could be matched successfully, otherwise FALSE.

removeMatchingPortionFromRequestPath() 보호된 메소드

This method can be overridden by custom RoutePartHandlers to implement custom matching mechanisms.
protected removeMatchingPortionFromRequestPath ( string &$routePath, string $valueToMatch ) : void
$routePath string The request path to be matched
$valueToMatch string The matching value
리턴 void

resolve() 최종 공개 메소드

If a corresponding element is found in $routeValues, this element is removed from the array.
final public resolve ( array &$routeValues ) : boolean
$routeValues array An array with key/value pairs to be resolved by Dynamic Route Parts.
리턴 boolean TRUE if current Route Part could be resolved, otherwise FALSE

resolveValue() 보호된 메소드

If $value is empty, this method checks whether a default value exists. This method can be overridden by custom RoutePartHandlers to implement custom resolving mechanisms.
protected resolveValue ( mixed $value ) : boolean
$value mixed value to resolve
리턴 boolean TRUE if value could be resolved successfully, otherwise FALSE.

setSplitString() 공개 메소드

Sets split string of the Route Part.
public setSplitString ( string $splitString ) : void
$splitString string
리턴 void

프로퍼티 상세

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

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

If it is empty, Route Part will be equal to the remaining request path.
protected string $splitString
리턴 string