eZPublishCommunityProject  2012.12
eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator Class Reference

URL generator for UrlAlias based links. More...

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

Public Member Functions

 __construct (\Closure $lazyRepository, RouterInterface $router)
 
 doGenerate ($location, array $parameters)
 Generates the URL from $urlResource and $parameters. More...
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\Routing\Generator
 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)
 

Public Attributes

const INTERNAL_LOCATION_ROUTE = '_ezpublishLocation'
 

Protected Member Functions

 getRepository ()
 
- Protected Member Functions inherited from eZ\Publish\Core\MVC\Symfony\Routing\Generator
 generateAbsoluteUrl ($uri)
 Generates an absolute URL from $uri and the request context. More...
 

Private Attributes

 $lazyRepository
 
 $router
 

Additional Inherited Members

- Protected Attributes inherited from eZ\Publish\Core\MVC\Symfony\Routing\Generator
 $requestContext
 

Detailed Description

URL generator for UrlAlias based links.

See Also

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator::__construct ( \Closure  $lazyRepository,
RouterInterface  $router 
)

Member Function Documentation

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

Generates the URL from $urlResource and $parameters.

Entries in $parameters will be added in the query string.

Parameters
\eZ\Publish\API\Repository\Values\Content\Location$location
array$parameters
Returns
string
eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator::getRepository ( )
protected

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator::$lazyRepository
private
eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator::$router
private
const eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator::INTERNAL_LOCATION_ROUTE = '_ezpublishLocation'

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