Elgg
Version 6.1
|
JSON endpoint response. More...
Public Member Functions | ||||
setTtl ($ttl=0) | ||||
{Set the max-age for client caching.
| ||||
getTtl () | ||||
{Get the max-age for client caching.
| ||||
setData (\stdClass $data) | ||||
{Set the response data.
| ||||
getData () | ||||
{Get the response data, which will be a stdClass object with property "value".
| ||||
cancel () | ||||
{Cancel the response and send a 403 header.
| ||||
isCancelled () | ||||
{Has the response been cancelled?
| ||||
Additional Inherited Members | |
Public Attributes inherited from Elgg\Services\AjaxResponse | |
const | RESPONSE_EVENT = 'ajax_response' |
Elgg\Ajax\Response::cancel | ( | ) |
{Cancel the response and send a 403 header.
Implements Elgg\Services\AjaxResponse.
Definition at line 58 of file Response.php.
Elgg\Ajax\Response::getData | ( | ) |
{Get the response data, which will be a stdClass object with property "value".
Implements Elgg\Services\AjaxResponse.
Definition at line 51 of file Response.php.
Elgg\Ajax\Response::getTtl | ( | ) |
{Get the max-age for client caching.
Implements Elgg\Services\AjaxResponse.
Definition at line 32 of file Response.php.
Elgg\Ajax\Response::isCancelled | ( | ) |
{Has the response been cancelled?
Implements Elgg\Services\AjaxResponse.
Definition at line 66 of file Response.php.
Elgg\Ajax\Response::setData | ( | \stdClass | $data | ) |
{Set the response data.
\stdClass | $data | Response data. Must be able to be encoded in JSON. |
Implements Elgg\Services\AjaxResponse.
Definition at line 39 of file Response.php.
Elgg\Ajax\Response::setTtl | ( | $ttl = 0 | ) |
{Set the max-age for client caching.
int | $ttl | Time to cache in seconds |
Implements Elgg\Services\AjaxResponse.
Definition at line 24 of file Response.php.