PHP 클래스 Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route

상속: extends Symfony\Cmf\Bundle\RoutingBundle\Model\Route, implements Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\PrefixInterface, implements Doctrine\ODM\PHPCR\HierarchyInterface
파일 보기 프로젝트 열기: symfony-cmf/routing-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
isBooleanOption ( $name )

메소드 상세

__construct() 공개 메소드

Additional supported option is: * add_trailing_slash: When set, a trailing slash is appended to the route
public __construct ( array $options = [] )
$options array

generateStaticPrefix() 공개 메소드

public generateStaticPrefix ( string $id, string $idPrefix ) : string
$id string PHPCR id of this document
$idPrefix string part of the id that can be removed
리턴 string the static part of the pattern of this route

getChildren() 공개 메소드

Get all children of this route including non-routes.
public getChildren ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection

getName() 공개 메소드

public getName ( )

getParentDocument() 공개 메소드

The parent document, which might be another route or some other document.
public getParentDocument ( ) : object
리턴 object The parent document

getPath() 공개 메소드

Handle the trailing slash option.
public getPath ( )

getPrefix() 공개 메소드

public getPrefix ( )

getRouteChildren() 공개 메소드

Filters out children that do not implement the RouteObjectInterface.
public getRouteChildren ( ) : Symfony\Cmf\Component\Routing\RouteObjectInterface[]
리턴 Symfony\Cmf\Component\Routing\RouteObjectInterface[]

getStaticPrefix() 공개 메소드

Overwrite model method as we need to build this
public getStaticPrefix ( )

isBooleanOption() 보호된 메소드

protected isBooleanOption ( $name )

setId() 공개 메소드

PHPCR documents can be moved by setting the id to a new path.
public setId ( string $id )
$id string

setName() 공개 메소드

Note that this will change the URL this route matches.
public setName ( string $name ) : self
$name string the new name
리턴 self

setParentDocument() 공개 메소드

Note that this will change the URL this route matches.
public setParentDocument ( object $parent )
$parent object the new parent document

setPath() 공개 메소드

public setPath ( $pattern )

setPosition() 공개 메소드

The url will be the url of the parent plus the supplied name.
public setPosition ( $parent, $name )

setPrefix() 공개 메소드

public setPrefix ( $idPrefix )

setStaticPrefix() 공개 메소드

Overwritten to translate into a move operation.
public setStaticPrefix ( $prefix )

프로퍼티 상세

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

Child route documents.
protected Collection,Doctrine\Common\Collections $children
리턴 Doctrine\Common\Collections\Collection

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

This field is not persisted in storage.
protected string $idPrefix
리턴 string

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

PHPCR node name.
protected string $name
리턴 string

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

parent document.
protected object $parent
리턴 object