JSON endpoint response.
More...
JSON endpoint response.
- Since
- 1.12.0
Definition at line 10 of file AjaxResponse.php.
Elgg\Services\AjaxResponse::cancel |
( |
| ) |
|
Elgg\Services\AjaxResponse::getData |
( |
| ) |
|
Get the response data, which will be a stdClass object with property "value".
- Returns
Implemented in Elgg\Ajax\Response.
Elgg\Services\AjaxResponse::getTtl |
( |
| ) |
|
Elgg\Services\AjaxResponse::isCancelled |
( |
| ) |
|
Elgg\Services\AjaxResponse::setData |
( |
\stdClass |
$data | ) |
|
Set the response data.
- Parameters
-
\stdClass | $data | Response data. Must be able to be encoded in JSON. |
- Returns
- self
Implemented in Elgg\Ajax\Response.
Elgg\Services\AjaxResponse::setTtl |
( |
|
$ttl = 0 | ) |
|
Set the max-age for client caching.
- Parameters
-
int | $ttl | Time to cache in seconds |
- Returns
- self
Implemented in Elgg\Ajax\Response.
const Elgg\Services\AjaxResponse::RESPONSE_EVENT = 'ajax_response' |
The documentation for this interface was generated from the following file: