PHP 클래스 Drahak\Restful\Application\UI\ResourcePresenter

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

보호된 프로퍼티들

프로퍼티 타입 설명
$authentication Drahak\Restful\Security\AuthenticationContext
$requestFilter Drahak\Restful\Utils\RequestFilter
$resource Drahak\Restful\IResource
$resourceFactory Drahak\Restful\IResourceFactory
$responseFactory Drahak\Restful\Application\IResponseFactory

공개 메소드들

메소드 설명
checkRequirements ( $element ) Check security and other presenter requirements
formatValidateMethod ( $action ) Validate action method
getInput ( ) : Drahak\Restful\Http\IInput Get input
injectDrahakRestful ( Drahak\Restful\Application\IResponseFactory $responseFactory, Drahak\Restful\IResourceFactory $resourceFactory, Drahak\Restful\Security\AuthenticationContext $authentication, InputFactory $inputFactory, Drahak\Restful\Utils\RequestFilter $requestFilter ) Inject Drahak Restful
link ( string $destination, array $args = [], string $rel = Link::SELF ) : Drahak\Restful\Resource\Link Create resource link representation object
sendResource ( string $contentType = NULL ) : Nette\Application\IResponse Get REST API response

보호된 메소드들

메소드 설명
beforeRender ( ) On before render
createErrorResource ( Exception | Throwable $e ) : Drahak\Restful\IResource Create error response from exception
sendErrorResource ( Exception | Throwable $e, $contentType = NULL ) Send error resource to output
startup ( ) Presenter startup

메소드 상세

beforeRender() 보호된 메소드

On before render
protected beforeRender ( )

checkRequirements() 공개 메소드

Check security and other presenter requirements
public checkRequirements ( $element )
$element

createErrorResource() 보호된 메소드

Create error response from exception
protected createErrorResource ( Exception | Throwable $e ) : Drahak\Restful\IResource
$e Exception | Throwable
리턴 Drahak\Restful\IResource

formatValidateMethod() 공개 정적인 메소드

Validate action method
public static formatValidateMethod ( $action )

getInput() 공개 메소드

Get input
public getInput ( ) : Drahak\Restful\Http\IInput
리턴 Drahak\Restful\Http\IInput

injectDrahakRestful() 최종 공개 메소드

Inject Drahak Restful
final public injectDrahakRestful ( Drahak\Restful\Application\IResponseFactory $responseFactory, Drahak\Restful\IResourceFactory $resourceFactory, Drahak\Restful\Security\AuthenticationContext $authentication, InputFactory $inputFactory, Drahak\Restful\Utils\RequestFilter $requestFilter )
$responseFactory Drahak\Restful\Application\IResponseFactory
$resourceFactory Drahak\Restful\IResourceFactory
$authentication Drahak\Restful\Security\AuthenticationContext
$inputFactory Drahak\Restful\Http\InputFactory
$requestFilter Drahak\Restful\Utils\RequestFilter

sendErrorResource() 보호된 메소드

Send error resource to output
protected sendErrorResource ( Exception | Throwable $e, $contentType = NULL )
$e Exception | Throwable

sendResource() 공개 메소드

Get REST API response
public sendResource ( string $contentType = NULL ) : Nette\Application\IResponse
$contentType string
리턴 Nette\Application\IResponse

startup() 보호된 메소드

Presenter startup
protected startup ( )

프로퍼티 상세

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

protected AuthenticationContext,Drahak\Restful\Security $authentication
리턴 Drahak\Restful\Security\AuthenticationContext

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

protected RequestFilter,Drahak\Restful\Utils $requestFilter
리턴 Drahak\Restful\Utils\RequestFilter

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

protected IResource,Drahak\Restful $resource
리턴 Drahak\Restful\IResource

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

protected IResourceFactory,Drahak\Restful $resourceFactory
리턴 Drahak\Restful\IResourceFactory

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

protected IResponseFactory,Drahak\Restful\Application $responseFactory
리턴 Drahak\Restful\Application\IResponseFactory