◆ __construct()
CRequestAnswer::__construct |
( |
|
$params = array() | ) |
|
Class constructor.
- Parameters
-
- Returns
- void
◆ get_param()
CRequestAnswer::get_param |
( |
|
$param = '' | ) |
|
Return param.
- Parameters
-
- Returns
- mixed
◆ update_params()
CRequestAnswer::update_params |
( |
|
$params = array() | ) |
|
Update params.
- Parameters
-
- Returns
- void
◆ update_param()
CRequestAnswer::update_param |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
Update param.
- Parameters
-
- Returns
- void
◆ set_asSuccess()
CRequestAnswer::set_asSuccess |
( |
|
$msg = '' | ) |
|
Set answer as success.
- Parameters
-
- Returns
- void
◆ set_asFailure()
CRequestAnswer::set_asFailure |
( |
|
$msg = '' , |
|
|
|
$error = '' |
|
) |
| |
Set answer as failure.
- Parameters
-
- Returns
- void
◆ is_success()
CRequestAnswer::is_success |
( |
| ) |
|
Return is request a success.
- Returns
- boolean result
◆ is_failure()
CRequestAnswer::is_failure |
( |
| ) |
|
Return is request a failure.
- Returns
- boolean result
◆ throw_fatalError()
CRequestAnswer::throw_fatalError |
( |
| ) |
|
Throw fatal error for failure.
- Returns
- void
◆ log_error()
CRequestAnswer::log_error |
( |
| ) |
|
Log error for failure.
- Returns
- void
◆ send_asXML()
CRequestAnswer::send_asXML |
( |
|
$params = array() | ) |
|
Send object data as XML (for ajax request).
- Parameters
-
- Returns
- void
◆ send_asJSON()
CRequestAnswer::send_asJSON |
( |
|
$params = array() | ) |
|
Send object data as JSON (for ajax request).
- Parameters
-
- Returns
- void
◆ $params
array CRequestAnswer::$params |
|
private |
Initial value:= array(
'status'=>'',
'parent'=>'',
'action'=>'',
'message'=>'',
'error'=>'',
'file'=>'',
'line'=>0,
)
CRequestAnswer parameters.
The documentation for this class was generated from the following file: