Class

eZ\Publish\Core\Persistence\Legacy\Content\UrlWildcard\Handler

class Handler implements Handler

The UrlWildcard Handler provides nice urls with wildcards management.

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

Methods

__construct(Gateway $gateway, Mapper $mapper)

Creates a new UrlWildcard Handler.

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(mixed $offset, mixed $limit = -1)

Loads all url wild card (paged).

Details

at line 42
public __construct(Gateway $gateway, Mapper $mapper)

Creates a new UrlWildcard Handler.

Parameters

Gateway $gateway
Mapper $mapper

at line 57
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 77
public remove(mixed $id)

removes an url wildcard.

Parameters

mixed $id

Exceptions

NotFoundException if the url wild card was not found

at line 91
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 110
public UrlWildcard[] loadAll(mixed $offset, mixed $limit = -1)

Loads all url wild card (paged).

Parameters

mixed $offset
mixed $limit

Return Value

UrlWildcard[]