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
Mostra file Open project: networking/init-cms-bundle

Protected Properties

Property Type Description
$content

Public Methods

Method 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 method

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

addDefaults() public method

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

getContent() public method

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

getDefaults() public method

public getDefaults ( ) : array
return array

getLocale() public method

public getLocale ( ) : mixed
return mixed

getOption() public method

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

getOptions() public method

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

getRouteKey() public method

public getRouteKey ( ) : mixed
return mixed

setDefaults() public method

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

Property Details

$content protected_oe property

protected $content