PHP Class eZ\Publish\Core\MVC\Symfony\Routing\RouteReference

显示文件 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( $route, array $params = [] )
get ( string $parameterName, mixed $defaultValue = null, boolean $deep = false ) : mixed Returns a route parameter.
getParams ( ) : array
getRoute ( ) : mixed
has ( $parameterName )
remove ( string $parameterName ) Removes a route parameter.
set ( string $parameterName, mixed $value ) Sets a route parameter.
setRoute ( mixed $route )

Method Details

__construct() public method

public __construct ( $route, array $params = [] )
$params array

get() public method

Returns a route parameter.
public get ( string $parameterName, mixed $defaultValue = null, boolean $deep = false ) : mixed
$parameterName string
$defaultValue mixed
$deep boolean
return mixed

getParams() public method

public getParams ( ) : array
return array

getRoute() public method

public getRoute ( ) : mixed
return mixed

has() public method

public has ( $parameterName )

remove() public method

Removes a route parameter.
public remove ( string $parameterName )
$parameterName string

set() public method

Sets a route parameter.
public set ( string $parameterName, mixed $value )
$parameterName string
$value mixed

setRoute() public method

public setRoute ( mixed $route )
$route mixed