PHP 인터페이스 ManaPHP\Mvc\Router\GroupInterface

파일 보기 프로젝트 열기: manaphp/manaphp

공개 메소드들

메소드 설명
add ( string $pattern, string | array $paths = null, string $httpMethod = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router on any HTTP method
addDelete ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router that only match if the HTTP method is DELETE
addGet ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router that only match if the HTTP method is GET
addHead ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router that only match if the HTTP method is HEAD
addOptions ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Add a route to the router that only match if the HTTP method is OPTIONS
addPatch ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router that only match if the HTTP method is PATCH
addPost ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router that only match if the HTTP method is POST
addPut ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface Adds a route to the router that only match if the HTTP method is PUT
match ( string $uri ) : false | array

메소드 상세

add() 공개 메소드

router->add('/about', 'About::index');
public add ( string $pattern, string | array $paths = null, string $httpMethod = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
$httpMethod string
리턴 ManaPHP\Mvc\Router\RouteInterface

addDelete() 공개 메소드

Adds a route to the router that only match if the HTTP method is DELETE
public addDelete ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

addGet() 공개 메소드

Adds a route to the router that only match if the HTTP method is GET
public addGet ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

addHead() 공개 메소드

Adds a route to the router that only match if the HTTP method is HEAD
public addHead ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

addOptions() 공개 메소드

Add a route to the router that only match if the HTTP method is OPTIONS
public addOptions ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

addPatch() 공개 메소드

Adds a route to the router that only match if the HTTP method is PATCH
public addPatch ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

addPost() 공개 메소드

Adds a route to the router that only match if the HTTP method is POST
public addPost ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

addPut() 공개 메소드

Adds a route to the router that only match if the HTTP method is PUT
public addPut ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface

match() 공개 메소드

public match ( string $uri ) : false | array
$uri string
리턴 false | array