Property | Type | Description | |
---|---|---|---|
$controller | controller object (if route call class and object to handle request) | ||
$path | current dispatched path | ||
$route | Route data array() | ||
$router | router object |
Method | Description | |
---|---|---|
__construct ( Roller\Router $router, array $route, string $path ) | ||
__get ( $n ) | ||
__invoke ( ) | evaluate route | |
__isset ( $n ) | magic accessor interface * | |
__set ( $n, $v ) | ||
createObjectFromReflection ( string $class = null, array $args = null, ReflectionClass $rc = null ) : Roller\Controller | Create object with/from ReflectionClass | |
getArgs ( ) | ||
getCallback ( ) | ||
getCallbackParameters ( $callback ) | ||
getController ( ) | ||
getDefault ( ) | ||
getPath ( ) | ||
getRequirement ( ) | ||
getRoute ( ) | ||
getRouter ( ) | ||
getVars ( ) | ||
initCallback ( mixed &$cb, array $args ) : ReflectionParameters | Build callback array | |
offsetExists ( $name ) | ||
offsetGet ( $name ) | ||
offsetSet ( $name, $value ) | ArrayAccess interface * | |
offsetUnset ( $name ) | ||
run ( ) : string | Evaluate route and return response content. |
public __construct ( Roller\Router $router, array $route, string $path ) | ||
$router | Roller\Router | router object. |
$route | array | route hash. |
$path | string | route path. |
public createObjectFromReflection ( string $class = null, array $args = null, ReflectionClass $rc = null ) : Roller\Controller | ||
$class | string | Class name (which is optional if ReflectionClass object is specified) |
$args | array | arguments for controller constructor. |
$rc | ReflectionClass | Reflection class of controller class |
return | Roller\Controller |
public initCallback ( mixed &$cb, array $args ) : ReflectionParameters | ||
$cb | mixed | callback object, can be array(object,method) or a Controller object |
$args | array | arguments for contructor. |
return | ReflectionParameters |
public $controller |