Public Member Functions | |
setRequest (HttpRequest $request) | |
getRequest () | |
resetRequest () | |
setBaseUrl (HttpUrl $url) | |
getBaseUrl () | |
resetBaseUrl () | |
addRoute ($name, RouterRule $route) | |
addRoutes (array $routes) | |
removeRoute ($name) | |
hasRoute ($name) | |
getRoute ($name) | |
getCurrentRoute () | |
getCurrentRouteName () | |
getRoutes () | |
resetRoutes () | |
route (HttpRequest $request) | |
Find a matching route to the current REQUEST_URI and inject returning values to the HttpRequest object. | |
assembly (array $userParams=array(), $name=null, $reset=false, $encode=true) | |
resetAll () | |
Static Public Member Functions | |
static | me () |
Protected Member Functions | |
__construct () | |
setRequestParams (HttpRequest $request, array $params) | |
Protected Attributes | |
$routes = array() | |
$currentRoute = null | |
$request = null | |
$baseUrl = null |
Definition at line 12 of file RouterRewrite.class.php.
RouterRewrite::__construct | ( | ) | [protected] |
Definition at line 27 of file RouterRewrite.class.php.
RouterRewrite::addRoute | ( | $ | name, | |
RouterRule $ | route | |||
) |
Definition at line 99 of file RouterRewrite.class.php.
References hasRoute().
Referenced by addRoutes().
RouterRewrite::addRoutes | ( | array $ | routes | ) |
Definition at line 114 of file RouterRewrite.class.php.
References addRoute().
RouterRewrite::assembly | ( | array $ | userParams = array() , |
|
$ | name = null , |
|||
$ | reset = false , |
|||
$ | encode = true | |||
) |
RouterException |
Definition at line 233 of file RouterRewrite.class.php.
References getBaseUrl(), getCurrentRouteName(), and getRoute().
RouterRewrite::getBaseUrl | ( | ) |
RouterRewrite::getCurrentRoute | ( | ) |
RouterException |
Definition at line 164 of file RouterRewrite.class.php.
References getRoute().
RouterRewrite::getCurrentRouteName | ( | ) |
RouterException |
Definition at line 178 of file RouterRewrite.class.php.
Referenced by assembly().
RouterRewrite::getRequest | ( | ) |
Definition at line 53 of file RouterRewrite.class.php.
RouterRewrite::getRoute | ( | $ | name | ) |
RouterException |
Definition at line 150 of file RouterRewrite.class.php.
References hasRoute().
Referenced by assembly(), and getCurrentRoute().
RouterRewrite::getRoutes | ( | ) |
Definition at line 191 of file RouterRewrite.class.php.
RouterRewrite::hasRoute | ( | $ | name | ) |
Definition at line 141 of file RouterRewrite.class.php.
Referenced by addRoute(), getRoute(), and removeRoute().
static RouterRewrite::me | ( | ) | [static] |
Implements Instantiatable.
Definition at line 35 of file RouterRewrite.class.php.
References Singleton::getInstance().
Referenced by RouterBaseRule::getPath(), RouterHostnameRule::resolvePath(), RouterHostnameRule::resolveSchema(), and RouterUrlHelper::url().
RouterRewrite::removeRoute | ( | $ | name | ) |
RouterException |
Definition at line 126 of file RouterRewrite.class.php.
References hasRoute().
RouterRewrite::resetAll | ( | ) |
Definition at line 259 of file RouterRewrite.class.php.
References resetBaseUrl(), resetRequest(), and resetRoutes().
RouterRewrite::resetBaseUrl | ( | ) |
Definition at line 89 of file RouterRewrite.class.php.
Referenced by resetAll().
RouterRewrite::resetRequest | ( | ) |
Definition at line 61 of file RouterRewrite.class.php.
Referenced by resetAll().
RouterRewrite::resetRoutes | ( | ) |
Definition at line 199 of file RouterRewrite.class.php.
Referenced by resetAll().
RouterRewrite::route | ( | HttpRequest $ | request | ) |
Find a matching route to the current REQUEST_URI and inject returning values to the HttpRequest object.
Definition at line 213 of file RouterRewrite.class.php.
References setRequest(), and setRequestParams().
RouterRewrite::setBaseUrl | ( | HttpUrl $ | url | ) |
Definition at line 71 of file RouterRewrite.class.php.
RouterRewrite::setRequest | ( | HttpRequest $ | request | ) |
RouterRewrite::setRequestParams | ( | HttpRequest $ | request, | |
array $ | params | |||
) | [protected] |
Definition at line 272 of file RouterRewrite.class.php.
References HttpRequest::setAttachedVar().
Referenced by route().
RouterRewrite::$baseUrl = null [protected] |
Definition at line 25 of file RouterRewrite.class.php.
RouterRewrite::$currentRoute = null [protected] |
Definition at line 15 of file RouterRewrite.class.php.
RouterRewrite::$request = null [protected] |
Definition at line 20 of file RouterRewrite.class.php.
RouterRewrite::$routes = array() [protected] |
Definition at line 14 of file RouterRewrite.class.php.