Interface

eZ\Publish\SPI\Persistence\Content\UrlWildcard\Handler

interface Handler

The UrlWildcard Handler interface provides nice urls with wildcards management.

Its methods operate on a representation of the url alias data structure held inside a storage engine.

Methods

UrlWildcard create(string $sourceUrl, string $destinationUrl, bool $forward = false)

Creates a new url wildcard.

remove(mixed $id)

removes an url wildcard.

UrlWildcard load(mixed $id)

Loads a url wild card.

UrlWildcard[] loadAll(int $offset, int $limit = -1)

Loads all url wild card (paged).

Details

at line 28
public UrlWildcard create(string $sourceUrl, string $destinationUrl, bool $forward = false)

Creates a new url wildcard.

Parameters

string $sourceUrl
string $destinationUrl
bool $forward

Return Value

UrlWildcard

at line 37
public remove(mixed $id)

removes an url wildcard.

Parameters

mixed $id

Exceptions

NotFoundException if the url wild card was not found

at line 48
public UrlWildcard load(mixed $id)

Loads a url wild card.

Parameters

mixed $id

Return Value

UrlWildcard

Exceptions

NotFoundException if the url wild card was not found

at line 58
public UrlWildcard[] loadAll(int $offset, int $limit = -1)

Loads all url wild card (paged).

Parameters

int $offset
int $limit

Return Value

UrlWildcard[]