PHP Class eZ\Publish\Core\SignalSlot\URLWildcardService

Inheritance: implements eZ\Publish\API\Repository\URLWildcardService
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$service eZ\Publish\API\Repository\URLWildcardService Aggregated service.
$signalDispatcher SignalDispatcher SignalDispatcher.

Méthodes publiques

Méthode Description
__construct ( eZ\Publish\API\Repository\URLWildcardService $service, SignalDispatcher $signalDispatcher ) Constructor.
create ( string $sourceUrl, string $destinationUrl, boolean $forward = false ) : eZ\Publish\API\Repository\Values\Content\UrlWildcard Creates a new url wildcard.
load ( mixed $id ) : eZ\Publish\API\Repository\Values\Content\UrlWildcard Loads a url wild card.
loadAll ( integer $offset, integer $limit ) : eZ\Publish\API\Repository\Values\Content\UrlWildcard[] Loads all url wild card (paged).
remove ( eZ\Publish\API\Repository\Values\Content\URLWildcard $urlWildcard ) removes an url wildcard.
translate ( mixed $url ) : eZ\Publish\API\Repository\Values\Content\URLWildcardTranslationResult translates an url to an existing uri resource based on the source/destination patterns of the url wildcard. If the resulting url is an alias it will be translated to the system uri.

Method Details

__construct() public méthode

Construct service object from aggregated service and signal dispatcher
public __construct ( eZ\Publish\API\Repository\URLWildcardService $service, SignalDispatcher $signalDispatcher )
$service eZ\Publish\API\Repository\URLWildcardService
$signalDispatcher SignalDispatcher

create() public méthode

Creates a new url wildcard.
public create ( string $sourceUrl, string $destinationUrl, boolean $forward = false ) : eZ\Publish\API\Repository\Values\Content\UrlWildcard
$sourceUrl string
$destinationUrl string
$forward boolean
Résultat eZ\Publish\API\Repository\Values\Content\UrlWildcard

load() public méthode

Loads a url wild card.
public load ( mixed $id ) : eZ\Publish\API\Repository\Values\Content\UrlWildcard
$id mixed
Résultat eZ\Publish\API\Repository\Values\Content\UrlWildcard

loadAll() public méthode

Loads all url wild card (paged).
public loadAll ( integer $offset, integer $limit ) : eZ\Publish\API\Repository\Values\Content\UrlWildcard[]
$offset integer
$limit integer
Résultat eZ\Publish\API\Repository\Values\Content\UrlWildcard[]

remove() public méthode

removes an url wildcard.
public remove ( eZ\Publish\API\Repository\Values\Content\URLWildcard $urlWildcard )
$urlWildcard eZ\Publish\API\Repository\Values\Content\URLWildcard the url wildcard to remove

translate() public méthode

This method runs also configured url translations and filter
public translate ( mixed $url ) : eZ\Publish\API\Repository\Values\Content\URLWildcardTranslationResult
$url mixed
Résultat eZ\Publish\API\Repository\Values\Content\URLWildcardTranslationResult

Property Details

$service protected_oe property

Aggregated service.
protected URLWildcardService,eZ\Publish\API\Repository $service
Résultat eZ\Publish\API\Repository\URLWildcardService

$signalDispatcher protected_oe property

SignalDispatcher.
protected SignalDispatcher,eZ\Publish\Core\SignalSlot $signalDispatcher
Résultat SignalDispatcher