PHP Класс Roller\RouteSet

Наследование: implements Iterato\Iterator
Показать файл Открыть проект

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

Свойство Тип Описание
$before
$i
$routes
$routesMap

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

Метод Описание
__call ( $m, $a )
__set_state ( $data ) interface for loading cache from source
add ( string $path, mixed $callback, array $options = [] ) Path rule Add method, an alias from any() method
any ( string $path, mixed $callback, array $options = [] ) Add path rule with *ANY* request method
compile ( ) xxx: write this in extension to improve compile time performance.
current ( ) interface for iterating *
findRouteByPath ( string $path ) find route by route path
get ( $path, $callback, $options = [] ) __call magic is always slow than methods
getAnnotationReader ( )
getRoute ( $name ) get route by route name
importAnnotationFromReflectionMethod ( ReflectionMethod $reflMethod )
importAnnotationMethods ( $class, $methods = null )
key ( )
mount ( $prefix, RouteSet $routes ) xxx: write this in extension.
next ( )
post ( $path, $callback, $options = [] )
rewind ( )
valid ( )

Защищенные методы

Метод Описание
_buildRoute ( $path, $callback, $options = [] ) using pure php to build route

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

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

public __call ( $m, $a )

__set_state() статический публичный Метод

interface for loading cache from source
static public __set_state ( $data )

_buildRoute() защищенный Метод

using pure php to build route
protected _buildRoute ( $path, $callback, $options = [] )

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

Path rule Add method, an alias from any() method
public add ( string $path, mixed $callback, array $options = [] )
$path string
$callback mixed
$options array

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

Add path rule with *ANY* request method
public any ( string $path, mixed $callback, array $options = [] )
$path string
$callback mixed
$options array

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

xxx: write this in extension to improve compile time performance.
public compile ( )

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

interface for iterating *
public current ( )

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

find route by route path
public findRouteByPath ( string $path )
$path string

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

__call magic is always slow than methods
public get ( $path, $callback, $options = [] )

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

public getAnnotationReader ( )

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

get route by route name
public getRoute ( $name )

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

public importAnnotationFromReflectionMethod ( ReflectionMethod $reflMethod )
$reflMethod ReflectionMethod

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

public importAnnotationMethods ( $class, $methods = null )

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

public key ( )

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

xxx: write this in extension.
public mount ( $prefix, RouteSet $routes )
$routes RouteSet

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

public next ( )

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

public post ( $path, $callback, $options = [] )

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

public rewind ( )

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

public valid ( )

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

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

public $before

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

public $i

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

public $routes

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

public $routesMap