Spec-Zone.ru › Laravel 4.2

JsonResponse

class JsonResponse extends JsonResponse (View source)

Свойства

ResponseTrait

Свойства

protected int $jsonOptions Параметры кодирования JSON.

Методы

$this header(string $key, string $value, bool $replace = true)

Устанавливает заголовок ответа.

из ResponseTrait
$this withCookie(Cookie $cookie)

Добавляет куки в ответ.

из ResponseTrait
__construct(mixed $data = null, int $status = 200, array $headers = array(), int $options)

Конструктор.

mixed getData(bool $assoc = false, int $depth = 512)

Получить данные, декодированные из JSON ответа.

setData($data = array())

{@inheritdoc}

int getJsonOptions()

Получить параметры кодирования JSON.

mixed setJsonOptions(int $options)

Установить параметры кодирования JSON.

Подробное описание

$this header(string $key, string $value, bool $replace = true)

Устанавливает заголовок ответа.

Параметры

string $key
string $value
bool $replace

Возвращаемое значение

$this

$this withCookie(Cookie $cookie)

Добавляет куки в ответ.

Параметры

Cookie $cookie

Возвращаемое значение

$this

__construct(mixed $data = null, int $status = 200, array $headers = array(), int $options)

Конструктор.

Параметры

mixed $data
int $status
array $headers
int $options

mixed getData(bool $assoc = false, int $depth = 512)

Получить данные, декодированные из JSON ответа.

Параметры

bool $assoc
int $depth

Возвращаемое значение

mixed

setData($data = array())

{@inheritdoc}

Параметры

$data

int getJsonOptions()

Получить параметры кодирования JSON.

Возвращаемое значение

int

mixed setJsonOptions(int $options)

Установить параметры кодирования JSON.

Параметры

int $options

Возвращаемое значение

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Http/JsonResponse.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API