PHP 클래스 Symfony\Cmf\Bundle\RoutingBundle\Model\Route

상속: extends Symfony\Component\Routing\Route, implements Symfony\Cmf\Component\Routing\RouteObjectInterface
파일 보기 프로젝트 열기: symfony-cmf/routing-bundle 1 사용 예제들

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__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 ) : Route
setVariablePattern ( string $variablePattern ) : Route

보호된 메소드들

메소드 설명
isBooleanOption ( string $name ) Helper method to check if an option is a boolean option to allow better forms.

메소드 상세

__construct() 공개 메소드

Additional supported options are: * add_format_pattern: When set, ".{_format}" is appended to the route pattern. Also implicitly sets a default/require on "_format" to "html". * add_locale_pattern: When set, "/{_locale}" is prepended to the route pattern.
public __construct ( array $options = [] )
$options array

compile() 공개 메소드

Overwritten to make sure the route is recompiled if the pattern was changed
public compile ( )

getContent() 공개 메소드

public getContent ( )

getId() 공개 메소드

Get the repository path of this url entry.
public getId ( )

getOption() 공개 메소드

Handling the missing default 'compiler_class'
또한 보기: setOptions
public getOption ( $name )

getOptions() 공개 메소드

Handling the missing default 'compiler_class'
또한 보기: setOptions
public getOptions ( )

getPath() 공개 메소드

public getPath ( )

getRouteKey() 공개 메소드

public getRouteKey ( )

getStaticPrefix() 공개 메소드

public getStaticPrefix ( ) : string
리턴 string the static prefix part of this route

getVariablePattern() 공개 메소드

public getVariablePattern ( ) : string
리턴 string the variable part of the url pattern

isBooleanOption() 보호된 메소드

Helper method to check if an option is a boolean option to allow better forms.
protected isBooleanOption ( string $name )
$name string

setContent() 공개 메소드

Set the object this url points to.
public setContent ( mixed $object )
$object mixed A content object that can be persisted by the storage layer.

setOptions() 공개 메소드

Prevent setting the default 'compiler_class' so that we do not persist it
public setOptions ( array $options )
$options array

setPath() 공개 메소드

It is recommended to use setVariablePattern to just set the part after the static part. If you use this method, it will ensure that the static part is not changed and only change the variable part. When using PHPCR-ODM, make sure to persist the route before calling this to have the id field initialized.
public setPath ( $pattern )

setStaticPrefix() 공개 메소드

public setStaticPrefix ( string $prefix ) : Route
$prefix string The static prefix part of this route
리턴 Route $this

setVariablePattern() 공개 메소드

public setVariablePattern ( string $variablePattern ) : Route
$variablePattern string the variable part of the url pattern
리턴 Route

프로퍼티 상세

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

The referenced content object.
protected object $content
리턴 object

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

Unique id of this route.
protected string $id
리턴 string

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

State information not persisted in storage.
protected bool $needRecompile
리턴 boolean

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

Note that this field is not used by PHPCR-ODM
protected string $staticPrefix
리턴 string

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

Variable pattern part. The static part of the pattern is the id without the prefix.
protected string $variablePattern
리턴 string