Copied!

Handler

Handler.php : 18

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

publiccountAll()

Handler.php : 98

Counts URL Wildcards.

public countAll() : int

Return values

int

publiccreate()

Handler.php : 29

Creates a new url wildcard.

public create(string $sourceUrl, string $destinationUrl[, bool $forward = false ]) : UrlWildcard

Parameters

Name Type Default value Description
$sourceUrl string - -
$destinationUrl string - -
$forward bool false -

Return values

UrlWildcard

publicexactSourceUrlExists()

Handler.php : 93

Checks whether UrlWildcard with given source url exits.

public exactSourceUrlExists(string $sourceUrl) : bool

Parameters

Name Type Default value Description
$sourceUrl string - -

Return values

bool

publicfind()

Handler.php : 73

Find URLWildcards.

public find(URLWildcardQuery $query) : array<string|int, mixed>

Parameters

Name Type Default value Description
$query URLWildcardQuery - -

Return values

array<string|int, mixed>

Tags
Throws
UnauthorizedException

publicload()

Handler.php : 56

Loads a url wild card.

public load(mixed $id) : UrlWildcard

Parameters

Name Type Default value Description
$id mixed - -

Return values

UrlWildcard

Tags
Throws
NotFoundException

if the url wild card was not found

publicloadAll()

Handler.php : 66

Loads all url wild card (paged).

public loadAll([int $offset = 0 ][, int $limit = -1 ]) : array<string|int, UrlWildcard>

Parameters

Name Type Default value Description
$offset int 0 -
$limit int -1 -

Return values

array<string|int, UrlWildcard>

publicremove()

Handler.php : 45

removes an url wildcard.

public remove(mixed $id) : mixed

Parameters

Name Type Default value Description
$id mixed - -
Tags
Throws
NotFoundException

if the url wild card was not found

publictranslate()

Handler.php : 84

Performs lookup for given (source) URL.

public translate(string $sourceUrl) : UrlWildcard

Parameters

Name Type Default value Description
$sourceUrl string - -

Return values

UrlWildcard

Tags
Throws
NotFoundException

if the url wild card was not found

publicupdate()

Handler.php : 31
public update(int $id, string $sourceUrl, string $destinationUrl, bool $forward) : UrlWildcard

Parameters

Name Type Default value Description
$id int - -
$sourceUrl string - -
$destinationUrl string - -
$forward bool - -

Return values

UrlWildcard