PHP Класс Roller\MatchedRoute

$route; $route['path']; $route['compiled'];
Наследование: implements ArrayAcces\ArrayAccess
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$controller controller object (if route call class and object to handle request)
$path current dispatched path
$route Route data array()
$router router object

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

public __construct ( Roller\Router $router, array $route, string $path )
$router Roller\Router router object.
$route array route hash.
$path string route path.

__get() публичный Метод

public __get ( $n )

__invoke() публичный Метод

evaluate route
public __invoke ( )

__isset() публичный Метод

magic accessor interface *
public __isset ( $n )

__set() публичный Метод

public __set ( $n, $v )

createObjectFromReflection() публичный Метод

Create object with/from ReflectionClass
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
Результат Roller\Controller

getArgs() публичный Метод

public getArgs ( )

getCallback() публичный Метод

public getCallback ( )

getCallbackParameters() публичный Метод

public getCallbackParameters ( $callback )

getController() публичный Метод

public getController ( )

getDefault() публичный Метод

public getDefault ( )

getPath() публичный Метод

public getPath ( )

getRequirement() публичный Метод

public getRequirement ( )

getRoute() публичный Метод

public getRoute ( )

getRouter() публичный Метод

public getRouter ( )

getVars() публичный Метод

public getVars ( )

initCallback() публичный Метод

Build callback array
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.
Результат ReflectionParameters

offsetExists() публичный Метод

public offsetExists ( $name )

offsetGet() публичный Метод

public offsetGet ( $name )

offsetSet() публичный Метод

ArrayAccess interface *
public offsetSet ( $name, $value )

offsetUnset() публичный Метод

public offsetUnset ( $name )

run() публичный Метод

Evaluate route and return response content.
public run ( ) : string
Результат string

Описание свойств

$controller публичное свойство

controller object (if route call class and object to handle request)
public $controller

$path публичное свойство

current dispatched path
public $path

$route публичное свойство

Route data array()
public $route

$router публичное свойство

router object
public $router