TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
route Class Reference

Titan Controller Route Class. More...

Public Member Functions

 __construct ($path=null,\tl\core\loadable $handler=null)
 
 route ($path=null,\tl\core\loadable $handler=null)
 
 path ($path=null)
 
 handler (\tl\core\loadable $handler=null)
 
 check ($path)
 
 execute ()
 

Protected Member Functions

 get_parts ($path)
 

Detailed Description

Titan Controller Route Class.

Class: \tl\core\controller\route

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Constructor & Destructor Documentation

__construct (   $path = null,
\tl\core\loadable  $handler = null 
)

Constructor

Parameters
string$path(optional) The path to assign (default) null = Do not set the path
loadable$handler(optional) The loadable callback handler for the path (default) null = Do not set the handler

Member Function Documentation

route (   $path = null,
\tl\core\loadable  $handler = null 
)

Set this route

Parameters
string$path(optional) The path of the route (default) null = Do not set the path
loadable$handler(optional) The loadable handler for the route (default) null = Do not set the handler
path (   $path = null)

Get and optionally set the path

Parameters
mixed$path(optional) The path to set (default) null = Do not set the path
Returns
string The current path
get_parts (   $path)
protected

Intername: break a path into parts

Parameters
string$pathThe path to break into parts
Returns
array
handler ( \tl\core\loadable  $handler = null)

Get and optionally set the loadable handler

Parameters
loadable$handler(optional) The loadable handler for the route (default) null = Do not set the handler
Returns
loadable The current loadable handler
check (   $path)

Chack this path to see if it matches $path_info

Parameters
string$pathThe $path to check this path against
Returns
boolean Does this path match?
execute ( )

Execute the handler


The documentation for this class was generated from the following file: