PHP 클래스 Drahak\Restful\Application\Routes\ResourceRoute

저자: Drahomír Hanák
상속: extends Nette\Application\Routers\Route, implements Drahak\Restful\Application\IResourceRouter
파일 보기 프로젝트 열기: drahak/restful 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$actionDictionary array

공개 메소드들

메소드 설명
__construct ( string $mask, array | string $metadata = [], integer $flags = IResourceRouter::GET )
getActionDictionary ( ) : array | null Get action dictionary
getMethod ( Nette\Http\IRequest $httpRequest ) : string | null Get request method flag
isMethod ( integer $method ) : boolean Is this route mapped to given method
match ( Nette\Http\IRequest $httpRequest ) : Nette\Application\Request | null
setActionDictionary ( $actionDictionary ) Set action dictionary

보호된 메소드들

메소드 설명
formatActionName ( string $action, array $parameters ) : string Format action name

메소드 상세

__construct() 공개 메소드

public __construct ( string $mask, array | string $metadata = [], integer $flags = IResourceRouter::GET )
$mask string
$metadata array | string
$flags integer

formatActionName() 보호된 정적인 메소드

Format action name
protected static formatActionName ( string $action, array $parameters ) : string
$action string
$parameters array
리턴 string

getActionDictionary() 공개 메소드

Get action dictionary
public getActionDictionary ( ) : array | null
리턴 array | null

getMethod() 공개 메소드

Get request method flag
public getMethod ( Nette\Http\IRequest $httpRequest ) : string | null
$httpRequest Nette\Http\IRequest
리턴 string | null

isMethod() 공개 메소드

Is this route mapped to given method
public isMethod ( integer $method ) : boolean
$method integer
리턴 boolean

match() 공개 메소드

public match ( Nette\Http\IRequest $httpRequest ) : Nette\Application\Request | null
$httpRequest Nette\Http\IRequest
리턴 Nette\Application\Request | null

setActionDictionary() 공개 메소드

Set action dictionary
public setActionDictionary ( $actionDictionary )

프로퍼티 상세

$actionDictionary 보호되어 있는 프로퍼티

protected array $actionDictionary
리턴 array