Property | Type | Description | |
---|---|---|---|
$children | Doctrine\Common\Collections\Collection | Child route documents. | |
$idPrefix | string | This field is not persisted in storage. | |
$name | string | PHPCR node name. | |
$parent | object | parent document. |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | PHPCR id can not end on '/', so we need an additional option for a trailing slash. | |
generateStaticPrefix ( string $id, string $idPrefix ) : string | ||
getChildren ( ) : Doctrine\Common\Collections\Collection | Get all children of this route including non-routes. | |
getName ( ) | ||
getParentDocument ( ) : object | The parent document, which might be another route or some other document. | |
getPath ( ) | ||
getPrefix ( ) | ||
getRouteChildren ( ) : Symfony\Cmf\Component\Routing\RouteObjectInterface[] | Get all route children of this route. | |
getStaticPrefix ( ) | ||
setId ( string $id ) | PHPCR documents can be moved by setting the id to a new path. | |
setName ( string $name ) : self | Rename a route by setting its new name. | |
setParentDocument ( object $parent ) | Move the route by setting a parent. | |
setPath ( $pattern ) | ||
setPosition ( $parent, $name ) | Convenience method to set parent and name at the same time. | |
setPrefix ( $idPrefix ) | ||
setStaticPrefix ( $prefix ) |
Method | Description | |
---|---|---|
isBooleanOption ( $name ) |
public __construct ( array $options = [] ) | ||
$options | array |
public getChildren ( ) : Doctrine\Common\Collections\Collection | ||
return | Doctrine\Common\Collections\Collection |
public getParentDocument ( ) : object | ||
return | object | The parent document |
public getRouteChildren ( ) : Symfony\Cmf\Component\Routing\RouteObjectInterface[] | ||
return | Symfony\Cmf\Component\Routing\RouteObjectInterface[] |
public getStaticPrefix ( ) |
public setParentDocument ( object $parent ) | ||
$parent | object | the new parent document |
public setPosition ( $parent, $name ) |
public setStaticPrefix ( $prefix ) |
protected Collection,Doctrine\Common\Collections $children | ||
return | Doctrine\Common\Collections\Collection |
protected string $idPrefix | ||
return | string |