Base
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- disableCheckPermissions() : self
- enableCheckPermissions() : self
- exec() : mixed
- Execute action, send json response
- getResult() : Result
- isCheckPermissionsEnabled() : bool
- sendResponse() : mixed
- Send json response. If $result is empty - builds response based on $this->result
- setAction() : $this
- Set current action of the controller.
Methods
__construct()
public
__construct([HttpRequest $request = null ]) : mixed
Parameters
- $request : HttpRequest = null
disableCheckPermissions()
public
disableCheckPermissions() : self
Return values
selfenableCheckPermissions()
public
enableCheckPermissions() : self
Return values
selfexec()
Execute action, send json response
public
exec([bool $sendResponse = true ]) : mixed
Parameters
- $sendResponse : bool = true
getResult()
public
getResult() : Result
Return values
ResultisCheckPermissionsEnabled()
public
isCheckPermissionsEnabled() : bool
Return values
boolsendResponse()
Send json response. If $result is empty - builds response based on $this->result
public
sendResponse([array<string|int, mixed> $result = array() ]) : mixed
Parameters
- $result : array<string|int, mixed> = array()
setAction()
Set current action of the controller.
public
setAction(string $action) : $this
Parameters
- $action : string