PHP Интерфейс Elgg\Services\AjaxResponse

С версии: 1.12.0
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
cancel ( ) : self Cancel the response and send a 403 header
getData ( ) : stdClass Get the response data, which will be a stdClass object with property "value"
getTtl ( ) : integer Get the max-age for client caching
isCancelled ( ) : boolean Has the response been cancelled?
setData ( stdClass $data ) : self Set the response data
setTtl ( integer $ttl ) : self Set the max-age for client caching

Описание методов

cancel() публичный метод

Cancel the response and send a 403 header
public cancel ( ) : self
Результат self

getData() публичный метод

Get the response data, which will be a stdClass object with property "value"
public getData ( ) : stdClass
Результат stdClass

getTtl() публичный метод

Get the max-age for client caching
public getTtl ( ) : integer
Результат integer

isCancelled() публичный метод

Has the response been cancelled?
public isCancelled ( ) : boolean
Результат boolean

setData() публичный метод

Set the response data
public setData ( stdClass $data ) : self
$data stdClass Response data. Must be able to be encoded in JSON.
Результат self

setTtl() публичный метод

Set the max-age for client caching
public setTtl ( integer $ttl ) : self
$ttl integer Time to cache in seconds
Результат self