Elgg
Version 2.3
|
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_HOOK = 'ajax_response' |
Elgg\Ajax\Response::cancel | ( | ) |
{Cancel the response and send a 403 header.
Implements Elgg\Services\AjaxResponse.
Definition at line 53 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 46 of file Response.php.
Elgg\Ajax\Response::getTtl | ( | ) |
{Get the max-age for client caching.
Implements Elgg\Services\AjaxResponse.
Definition at line 28 of file Response.php.
Elgg\Ajax\Response::isCancelled | ( | ) |
{Has the response been cancelled?
Implements Elgg\Services\AjaxResponse.
Definition at line 61 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 35 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 20 of file Response.php.