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

Inheritance: implements eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessAware
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$logger Psr\Log\LoggerInterface
$requestContext Symfony\Component\Routing\RequestContext
$siteAccess eZ\Publish\Core\MVC\Symfony\SiteAccess
$siteAccessRouter eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface

Méthodes publiques

Méthode Description
doGenerate ( mixed $urlResource, array $parameters ) : string Generates the URL from $urlResource and $parameters.
generate ( mixed $urlResource, array $parameters, integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string Triggers URL generation for $urlResource and $parameters.
setLogger ( Psr\Log\LoggerInterface $logger = null )
setRequestContext ( Symfony\Component\Routing\RequestContext $requestContext )
setSiteAccess ( SiteAccess $siteAccess = null )
setSiteAccessRouter ( eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface $siteAccessRouter )

Méthodes protégées

Méthode Description
generateAbsoluteUrl ( string $uri, Symfony\Component\Routing\RequestContext $requestContext ) : string Generates an absolute URL from $uri and the request context.

Private Methods

Méthode Description
getContextBySimplifiedRequest ( SimplifiedRequest $simplifiedRequest ) : Symfony\Component\Routing\RequestContext Merges context from $simplifiedRequest into a clone of the current context.

Method Details

doGenerate() abstract public méthode

Generates the URL from $urlResource and $parameters.
abstract public doGenerate ( mixed $urlResource, array $parameters ) : string
$urlResource mixed
$parameters array
Résultat string

generate() public méthode

Triggers URL generation for $urlResource and $parameters.
public generate ( mixed $urlResource, array $parameters, integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string
$urlResource mixed Type can be anything, depending on the context. It's up to the router to pass the appropriate value to the implementor.
$parameters array Arbitrary hash of parameters to generate a link. SiteAccess name can be provided as 'siteaccess' to generate a link to it (cross siteaccess link).
$referenceType integer The type of reference to be generated (one of the constants)
Résultat string

generateAbsoluteUrl() protected méthode

Generates an absolute URL from $uri and the request context.
protected generateAbsoluteUrl ( string $uri, Symfony\Component\Routing\RequestContext $requestContext ) : string
$uri string
$requestContext Symfony\Component\Routing\RequestContext
Résultat string

setLogger() public méthode

public setLogger ( Psr\Log\LoggerInterface $logger = null )
$logger Psr\Log\LoggerInterface

setRequestContext() public méthode

public setRequestContext ( Symfony\Component\Routing\RequestContext $requestContext )
$requestContext Symfony\Component\Routing\RequestContext

setSiteAccess() public méthode

public setSiteAccess ( SiteAccess $siteAccess = null )
$siteAccess eZ\Publish\Core\MVC\Symfony\SiteAccess

setSiteAccessRouter() public méthode

public setSiteAccessRouter ( eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface $siteAccessRouter )
$siteAccessRouter eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface

Property Details

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$requestContext protected_oe property

protected RequestContext,Symfony\Component\Routing $requestContext
Résultat Symfony\Component\Routing\RequestContext

$siteAccess protected_oe property

protected SiteAccess,eZ\Publish\Core\MVC\Symfony $siteAccess
Résultat eZ\Publish\Core\MVC\Symfony\SiteAccess

$siteAccessRouter protected_oe property

protected SiteAccessRouterInterface,eZ\Publish\Core\MVC\Symfony\SiteAccess $siteAccessRouter
Résultat eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface