Property | Type | Description | |
---|---|---|---|
$content | object | The referenced content object. | |
$id | string | Unique id of this route. | |
$needRecompile | boolean | State information not persisted in storage. | |
$staticPrefix | string | Note that this field is not used by PHPCR-ODM | |
$variablePattern | string | Variable pattern part. The static part of the pattern is the id without the prefix. |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Overwrite to be able to create route without pattern. | |
compile ( ) | ||
getContent ( ) | ||
getId ( ) | Get the repository path of this url entry. | |
getOption ( $name ) | ||
getOptions ( ) | ||
getPath ( ) | ||
getRouteKey ( ) | ||
getStaticPrefix ( ) : string | ||
getVariablePattern ( ) : string | ||
setContent ( mixed $object ) | Set the object this url points to. | |
setOptions ( array $options ) | ||
setPath ( $pattern ) | ||
setStaticPrefix ( string $prefix ) : |
||
setVariablePattern ( string $variablePattern ) : |
Method | Description | |
---|---|---|
isBooleanOption ( string $name ) | Helper method to check if an option is a boolean option to allow better forms. |
public __construct ( array $options = [] ) | ||
$options | array |
public compile ( ) |
public getStaticPrefix ( ) : string | ||
return | string | the static prefix part of this route |
public getVariablePattern ( ) : string | ||
return | string | the variable part of the url pattern |
protected isBooleanOption ( string $name ) | ||
$name | string |
public setContent ( mixed $object ) | ||
$object | mixed | A content object that can be persisted by the storage layer. |
public setOptions ( array $options ) | ||
$options | array |
public setPath ( $pattern ) |
public setStaticPrefix ( string $prefix ) : |
||
$prefix | string | The static prefix part of this route |
return | $this |
public setVariablePattern ( string $variablePattern ) : |
||
$variablePattern | string | the variable part of the url pattern |
return |
protected bool $needRecompile | ||
return | boolean |
protected string $staticPrefix | ||
return | string |
protected string $variablePattern | ||
return | string |