PHP Class Basecoat\Routing

Exibir arquivo Open project: shutterstock/basecoat

Public Properties

Property Type Description
$counter
$current
$hooks
$max_routes
$profiling public $last = null;
$profiling_enabled
$requested_route public $requested_path = null;
$requested_url
$run_routes
$running_route

Public Methods

Method Description
__construct ( $basecoat, $routes = null )
addAfterEach ( $func )
addBeforeEach ( $func )
addRoutes ( $routes )
clearAfterEach ( )
clearBeforeEach ( )
parseUrl ( $url = null )
processHooks ( $hook )
routeClose ( )
run ( $route )
runNext ( )
set ( $setting, $val )
setDefault ( $route_name )
setError ( $route_name )
setRoutes ( $routes )
setRunRoutes ( $run_routes = [], $set_current = false )
setStatic ( $route_name )
setUndefined ( $route_name )
setUrl ( $url = null )

Private Methods

Method Description
logProfiling ( $route_name )

Method Details

__construct() public method

public __construct ( $basecoat, $routes = null )

addAfterEach() public method

public addAfterEach ( $func )

addBeforeEach() public method

public addBeforeEach ( $func )

addRoutes() public method

public addRoutes ( $routes )

clearAfterEach() public method

public clearAfterEach ( )

clearBeforeEach() public method

public clearBeforeEach ( )

parseUrl() public method

public parseUrl ( $url = null )

processHooks() public method

public processHooks ( $hook )

routeClose() public method

public routeClose ( )

run() public method

public run ( $route )

runNext() public method

public runNext ( )

set() public method

public set ( $setting, $val )

setDefault() public method

public setDefault ( $route_name )

setError() public method

public setError ( $route_name )

setRoutes() public method

public setRoutes ( $routes )

setRunRoutes() public method

public setRunRoutes ( $run_routes = [], $set_current = false )

setStatic() public method

public setStatic ( $route_name )

setUndefined() public method

public setUndefined ( $route_name )

setUrl() public method

public setUrl ( $url = null )

Property Details

$counter public_oe property

public $counter

$current public_oe property

public $current

$hooks public_oe property

public $hooks

$max_routes public_oe property

public $max_routes

$profiling public_oe property

public $last = null;
public $profiling

$profiling_enabled public_oe property

public $profiling_enabled

$requested_route public_oe property

public $requested_path = null;
public $requested_route

$requested_url public_oe property

public $requested_url

$run_routes public_oe property

public $run_routes

$running_route public_oe property

public $running_route