CoolCMS API

AdminRouteFactory
in package

Table of Contents

Properties

$hrefTranslator  : AdminPageHrefTranslator

Methods

__construct()  : mixed
create()  : RouteList
filterIn()  : array<string, mixed>|null
Translates the pretty URL segments to the target presenter and action.
filterOut()  : array<string, mixed>|null
Translates the target presenter and action to pretty URL segments.
stringParam()  : string|null
Reads a route parameter as a string, or returns null when it is not a string.

Properties

Methods

filterIn()

Translates the pretty URL segments to the target presenter and action.

private filterIn(array<string, mixed> $params) : array<string, mixed>|null
Parameters
$params : array<string, mixed>
Return values
array<string, mixed>|null —

null when no page matches, so the next route is tried

filterOut()

Translates the target presenter and action to pretty URL segments.

private filterOut(array<string, mixed> $params) : array<string, mixed>|null
Parameters
$params : array<string, mixed>
Return values
array<string, mixed>|null —

null when the page has no pretty URL, so the fallback route is used

stringParam()

Reads a route parameter as a string, or returns null when it is not a string.

private stringParam(array<string, mixed> $params, string $key) : string|null
Parameters
$params : array<string, mixed>
$key : string
Return values
string|null
On this page

Search results