Phpxforms documentation

Router
in package

Static class for initial routing

Tags
author

DaVee

version
0.87dev
license

Lesser General Public License 2.1 or later; see http://www.gnu.org/licenses/lgpl-2.1.html

Table of Contents

Properties

$path  : string

Methods

clearInPath()  : string
Filter input path
findRoute()  : string|null
Find active path
getParse()  : array<string|int, string>
Get separated path
init()  : string
Load current path and find target
loadPathInfo()  : string
Load current url path

Properties

$path

public static string $path

Methods

clearInPath()

Filter input path

public static clearInPath(string $value) : string
Parameters
$value : string
Return values
string

findRoute()

Find active path

public static findRoute(array<string, string> $routes) : string|null
Parameters
$routes : array<string, string>
Return values
string|null

getParse()

Get separated path

public static getParse() : array<string|int, string>
Return values
array<string|int, string>

init()

Load current path and find target

public static init(array<string, string> $routes) : string
Parameters
$routes : array<string, string>
Tags
throws
DomainException

no path found

Return values
string

loadPathInfo()

Load current url path

public static loadPathInfo() : string
Return values
string

        
On this page

Search results