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

This extends the RedirectRoute Model. We need to re-implement everything that the PHPCR Route document adds.
상속: extends Symfony\Cmf\Bundle\RoutingBundle\Model\RedirectRoute, 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 = [] ) Overwrite to be able to create route without pattern.
generateStaticPrefix ( string $id, string $idPrefix ) : string
getName ( )
getParentDocument ( )
getPath ( )
getPrefix ( )
getRouteChildren ( ) : array Return this routes children.
getStaticPrefix ( )
setId ( string $id ) PHPCR documents can be moved by setting the id to a new path.
setName ( string $name ) 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 options: * 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

getName() 공개 메소드

public getName ( )

getParentDocument() 공개 메소드

public getParentDocument ( )

getPath() 공개 메소드

public getPath ( )

getPrefix() 공개 메소드

public getPrefix ( )

getRouteChildren() 공개 메소드

Filters out children that do not implement the RouteObjectInterface.
public getRouteChildren ( ) : array
리턴 array - array of RouteObjectInterface's

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 )
$name string the new name

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