Controller
in package
Base class to handle communication via web services.
Table of Contents
- $app : array<string|int, mixed>
- $headers : array<string|int, mixed>
- $method : string
- $request : Request
- $response : Response
- $actionHandler : BaseAction
- $instance : self
- __construct() : mixed
- Construct.
- debugRequest() : void
- Debug request function.
- errorHandler() : void
- Exception error handler function.
- getInstance() : self
- Get controller instance.
- handleError() : void
- Handle error function.
- postProcess() : void
- Post process function.
- preProcess() : bool
- Pre process function.
- process() : void
- Process function.
- getActionClassName() : string
- Get action class name.
Properties
$app
public
array<string|int, mixed>
$app
Current server details (w_#__servers).
$headers
public
array<string|int, mixed>
$headers
Headers.
$method
public
string
$method
Request method.
$request
public
Request
$request
Request instance.
$response
public
Response
$response
Response instance.
$actionHandler
private
BaseAction
$actionHandler
$instance
private
static self
$instance
Methods
__construct()
Construct.
public
__construct() : mixed
Return values
mixed —debugRequest()
Debug request function.
public
debugRequest() : void
Return values
void —errorHandler()
Exception error handler function.
public
static errorHandler(int $no, string $str, string $file, int $line) : void
.
Parameters
- $no : int
- $str : string
- $file : string
- $line : int
Tags
Return values
void —getInstance()
Get controller instance.
public
static getInstance() : self
Return values
self —handleError()
Handle error function.
public
handleError(Throwable $e) : void
Parameters
- $e : Throwable
Return values
void —postProcess()
Post process function.
public
postProcess() : void
Return values
void —preProcess()
Pre process function.
public
preProcess() : bool
Tags
Return values
bool —process()
Process function.
public
process() : void
Tags
Return values
void —getActionClassName()
Get action class name.
private
getActionClassName() : string