Router Class Reference

Inheritance diagram for Router:

Object

List of all members.


Public Member Functions

 connect ($route, $default=null)
 parse ($url)
 stripEscape ($param)

Public Attributes

 $routes = array()

Detailed Description

Definition at line 40 of file router.php.


Member Function Documentation

Router::connect ( route,
default = null 
)

Returns this object's routes array. Returns false if there are no routes available.

Parameters:
string $route An empty string, or a route string "/"
array $default NULL or an array describing the default route
Returns:
array Array of routes

Definition at line 77 of file router.php.

Router::parse ( url  ) 

Parses given URL and returns an array of controllers, action and parameters taken from that URL.

Parameters:
string $url URL to be parsed
Returns:
array public

Definition at line 127 of file router.php.

Router::stripEscape ( param  ) 

Definition at line 209 of file router.php.


Member Data Documentation

Router::$routes = array()

Definition at line 47 of file router.php.


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