eZPublishCommunityProject  2013.5
eZ\Publish\Core\MVC\Symfony\Routing\Generator Class Reference

Base class for eZ Publish Url generation. More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Routing\Generator:

Public Member Functions

 doGenerate ($urlResource, array $parameters)
 Generates the URL from $urlResource and $parameters. More...
 
 generate ($urlResource, array $parameters, $absolute=false)
 Triggers URL generation for $urlResource and $parameters. More...
 
 setRequestContext (RequestContext $requestContext)
 

Protected Member Functions

 generateAbsoluteUrl ($uri)
 Generates an absolute URL from $uri and the request context. More...
 

Protected Attributes

 $requestContext
 

Detailed Description

Base class for eZ Publish Url generation.

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Routing\Generator::doGenerate (   $urlResource,
array  $parameters 
)
abstract

Generates the URL from $urlResource and $parameters.

Parameters
mixed$urlResource
array$parameters
Returns
string

Referenced by eZ\Publish\Core\MVC\Symfony\Routing\Generator\generate().

eZ\Publish\Core\MVC\Symfony\Routing\Generator::generate (   $urlResource,
array  $parameters,
  $absolute = false 
)

Triggers URL generation for $urlResource and $parameters.

Parameters
mixed$urlResourceType can be anything, depending on the context. It's up to the router to pass the appropriate value to the implementor.
array$parameters
boolean$absolute
Returns
string
eZ\Publish\Core\MVC\Symfony\Routing\Generator::generateAbsoluteUrl (   $uri)
protected

Generates an absolute URL from $uri and the request context.

Parameters
string$uri
Returns
string

Referenced by eZ\Publish\Core\MVC\Symfony\Routing\Generator\generate().

eZ\Publish\Core\MVC\Symfony\Routing\Generator::setRequestContext ( RequestContext  $requestContext)
Parameters
\Symfony\Component\Routing\RequestContext$requestContext

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Routing\Generator::$requestContext
protected

The documentation for this class was generated from the following file: