PHP Class eZ\Publish\Core\SignalSlot\URLWildcardService

Inheritance: implements eZ\Publish\API\Repository\URLWildcardService
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$service eZ\Publish\API\Repository\URLWildcardService Aggregated service.
$signalDispatcher SignalDispatcher SignalDispatcher.

Public Methods

Method 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 method

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 method

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
return eZ\Publish\API\Repository\Values\Content\UrlWildcard

load() public method

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

loadAll() public method

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

remove() public method

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 method

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

Property Details

$service protected_oe property

Aggregated service.
protected URLWildcardService,eZ\Publish\API\Repository $service
return eZ\Publish\API\Repository\URLWildcardService

$signalDispatcher protected_oe property

SignalDispatcher.
protected SignalDispatcher,eZ\Publish\Core\SignalSlot $signalDispatcher
return SignalDispatcher