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¶
countAll() ¶
Handler.php
:
98
Counts URL Wildcards.
|
|
Return values
int
create() ¶
Handler.php
:
29
Creates a new url wildcard.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sourceUrl | string | - | - |
$destinationUrl | string | - | - |
$forward | bool | false | - |
Return values
exactSourceUrlExists() ¶
Handler.php
:
93
Checks whether UrlWildcard with given source url exits.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sourceUrl | string | - | - |
Return values
bool
find() ¶
Handler.php
:
73
Find URLWildcards.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | URLWildcardQuery | - | - |
Return values
array<string|int, mixed>
Tags
load() ¶
Handler.php
:
56
Loads a url wild card.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$id | mixed | - | - |
Return values
Tags
loadAll() ¶
Handler.php
:
66
Loads all url wild card (paged).
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$offset | int | 0 | - |
$limit | int | -1 | - |
Return values
array<string|int, UrlWildcard>
remove() ¶
Handler.php
:
45
removes an url wildcard.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$id | mixed | - | - |
Tags
translate() ¶
Handler.php
:
84
Performs lookup for given (source) URL.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sourceUrl | string | - | - |
Return values
Tags
update() ¶
Handler.php
:
31
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$id | int | - | - |
$sourceUrl | string | - | - |
$destinationUrl | string | - | - |
$forward | bool | - | - |