Свойство | Тип | Описание | |
---|---|---|---|
$objectPathMappingRepository | |||
$objectType | string | The object type (class name) of the entity this route part belongs to | |
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$reflectionService | |||
$uriPattern | string | pattern for the URI representation (for example "{date:Y}/{date:m}/{date.d}/{title}") |
Метод | Описание | |
---|---|---|
getObjectType ( ) : string | ||
getUriPattern ( ) : string | If $this->uriPattern is specified, this will be returned, otherwise identity properties of $this->objectType are returned in the format {property1}/{property2}/{property3}. | |
setObjectType ( string $objectType ) : void | ||
setUriPattern ( string $uriPattern ) : void |
Метод | Описание | |
---|---|---|
createPathSegmentForObject ( mixed $object ) : string | Creates a URI representation (path segment) for the given object matching $this->uriPattern. | |
findValueToMatch ( string $routePath ) : string | Returns the first part of $routePath that should be evaluated in matchValue(). | |
getObjectIdentifierFromPathSegment ( string $pathSegment ) : string | integer | Retrieves the object identifier from the given $pathSegment. | |
getPathSegmentByIdentifier ( string $identifier ) : string | integer | Generates a unique string for the given identifier according to $this->uriPattern. | |
matchValue ( string $value ) : boolean | Checks, whether given value can be matched. | |
resolveValue ( mixed $value ) : boolean | Resolves the given entity and sets the value to a URI representation (path segment) that matches $this->uriPattern and is unique for the given object. | |
rewriteForUri ( string $value ) : string | Transforms the given string into a URI compatible format without special characters. | |
storeObjectPathMapping ( string $pathSegment, string | integer $identifier ) : void | Creates a new ObjectPathMapping and stores it in the repository |
protected createPathSegmentForObject ( mixed $object ) : string | ||
$object | mixed | object of type $this->objectType |
Результат | string | URI representation (path segment) of the given object |
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, split string was not found or uriPattern could not be matched |
public getUriPattern ( ) : string | ||
Результат | string |
protected matchValue ( string $value ) : boolean | ||
$value | string | value to match, usually the current query path segment(s) |
Результат | boolean | TRUE if value could be matched successfully, otherwise FALSE |
protected resolveValue ( mixed $value ) : boolean | ||
$value | mixed | |
Результат | boolean | TRUE if the object could be resolved and stored in $this->value, otherwise FALSE. |
protected rewriteForUri ( string $value ) : string | ||
$value | string | |
Результат | string |
public setObjectType ( string $objectType ) : void | ||
$objectType | string | |
Результат | void |
public setUriPattern ( string $uriPattern ) : void | ||
$uriPattern | string | |
Результат | void |
protected ObjectPathMappingRepository,Neos\Flow\Mvc\Routing $objectPathMappingRepository | ||
Результат |
protected string $objectType | ||
Результат | string |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
Результат | Neos\Flow\Persistence\PersistenceManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |
protected string $uriPattern | ||
Результат | string |