Documentation

Router
in package

Table of Contents

$dataTypes  : array<string|int, mixed>
$uriCallback  : array<string|int, mixed>
$uriList  : array<string|int, mixed>
$uriListRegExp  : array<string|int, mixed>
$uriVariables  : array<string|int, mixed>
__call()  : mixed
Register URI(s) and callbacks
__construct()  : mixed
Router constructor method
submit()  : void
Parse requested route and trigger registered callback
stringEndsWith()  : bool
Check if string ends with a char(s)
stringStartsWith()  : bool
Check if string starts with a char(s)

Properties

$dataTypes

private array<string|int, mixed> $dataTypes = array('int', 'string')

Acceptable URI datatypes

$uriCallback

private array<string|int, mixed> $uriCallback = array()

Callbacks for URI(s)

$uriList

private array<string|int, mixed> $uriList = array()

Valid URI(s)

$uriListRegExp

private array<string|int, mixed> $uriListRegExp = array()

Regex representation of URI(s)

$uriVariables

private array<string|int, mixed> $uriVariables = array()

Variables found in the URI

Methods

__call()

Register URI(s) and callbacks

public __call(mixed $name, array<string|int, mixed> $arguments) : mixed

@param $name

Parameters
$name : mixed
$arguments : array<string|int, mixed>
Return values
mixed

__construct()

Router constructor method

public __construct() : mixed
Return values
mixed

submit()

Parse requested route and trigger registered callback

public submit() : void
Return values
void

stringEndsWith()

Check if string ends with a char(s)

private stringEndsWith(mixed $string,  $endString) : bool

@param $string

Parameters
$string : mixed
$endString :

@return bool

Return values
bool

stringStartsWith()

Check if string starts with a char(s)

private stringStartsWith(mixed $string,  $startString) : bool

@param $string

Parameters
$string : mixed
$startString :

@return bool

Return values
bool

Search results