PHP 클래스 Roller\RouteSet

상속: implements Iterato\Iterator
파일 보기 프로젝트 열기: c9s/roller

공개 프로퍼티들

프로퍼티 타입 설명
$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