PHP Class Networking\InitCmsBundle\Component\Routing\Route

Class CMSRoute
Author: Yorkie Chadwick ([email protected])
Inheritance: extends Symfony\Component\Routing\Route, implements Symfony\Cmf\Component\Routing\RouteObjectInterface
Afficher le fichier Open project: networking/init-cms-bundle

Protected Properties

Свойство Type Description
$content

Méthodes publiques

Méthode Description
__construct ( $pattern, array $defaults = [] )
addDefaults ( array $defaults ) : Route Adds defaults.
getContent ( ) : object Get the content document this route entry stands for. If non-null, the ControllerClassMapper uses it to identify a controller and the content is passed to the controller.
getDefaults ( ) : array
getLocale ( ) : mixed
getOption ( $name ) {@inheritDoc}
getOptions ( ) {@inheritDoc}
getRouteKey ( ) : mixed
setDefaults ( array $defaults ) : Route Sets the defaults.

Method Details

__construct() public méthode

public __construct ( $pattern, array $defaults = [] )
$pattern
$defaults array

addDefaults() public méthode

This method implements a fluent interface.
public addDefaults ( array $defaults ) : Route
$defaults array The defaults
Résultat Route The current Route instance

getContent() public méthode

If there is no specific content for this url (i.e. its an "application" page), may return null.
public getContent ( ) : object
Résultat object the document or entity this route entry points to

getDefaults() public méthode

public getDefaults ( ) : array
Résultat array

getLocale() public méthode

public getLocale ( ) : mixed
Résultat mixed

getOption() public méthode

Handling the missing default 'compiler_class'
See also: setOptions
public getOption ( $name )

getOptions() public méthode

Handling the missing default 'compiler_class'
See also: setOptions
public getOptions ( )

getRouteKey() public méthode

public getRouteKey ( ) : mixed
Résultat mixed

setDefaults() public méthode

This method implements a fluent interface.
public setDefaults ( array $defaults ) : Route
$defaults array The defaults
Résultat Route The current Route instance

Property Details

$content protected_oe property

protected $content