Property | Type | Description | |
---|---|---|---|
$authentication | Drahak\Restful\Security\AuthenticationContext | ||
$requestFilter | Drahak\Restful\Utils\RequestFilter | ||
$resource | Drahak\Restful\IResource | ||
$resourceFactory | Drahak\Restful\IResourceFactory | ||
$responseFactory | Drahak\Restful\Application\IResponseFactory |
Method | Description | |
---|---|---|
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, |
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 |
Method | Description | |
---|---|---|
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 |
public checkRequirements ( $element ) | ||
$element |
protected createErrorResource ( Exception | Throwable $e ) : Drahak\Restful\IResource | ||
$e | Exception | Throwable | |
return | Drahak\Restful\IResource |
public static formatValidateMethod ( $action ) |
public getInput ( ) : Drahak\Restful\Http\IInput | ||
return | Drahak\Restful\Http\IInput |
final public injectDrahakRestful ( Drahak\Restful\Application\IResponseFactory $responseFactory, Drahak\Restful\IResourceFactory $resourceFactory, Drahak\Restful\Security\AuthenticationContext $authentication, |
||
$responseFactory | Drahak\Restful\Application\IResponseFactory | |
$resourceFactory | Drahak\Restful\IResourceFactory | |
$authentication | Drahak\Restful\Security\AuthenticationContext | |
$inputFactory | ||
$requestFilter | Drahak\Restful\Utils\RequestFilter |
protected sendErrorResource ( Exception | Throwable $e, $contentType = NULL ) | ||
$e | Exception | Throwable |
public sendResource ( string $contentType = NULL ) : Nette\Application\IResponse | ||
$contentType | string | |
return | Nette\Application\IResponse |
protected AuthenticationContext,Drahak\Restful\Security $authentication | ||
return | Drahak\Restful\Security\AuthenticationContext |
protected RequestFilter,Drahak\Restful\Utils $requestFilter | ||
return | Drahak\Restful\Utils\RequestFilter |
protected IResource,Drahak\Restful $resource | ||
return | Drahak\Restful\IResource |
protected IResourceFactory,Drahak\Restful $resourceFactory | ||
return | Drahak\Restful\IResourceFactory |