Class JsonResponse (namespace Nette\Application)
JSON response used for AJAX requests.
Object | --JsonResponse
Implements interfaces:
Public Method Summary | |
---|---|
JsonResponse |
__construct
(array|stdClass $payload, [string $contentType =
NULL ])
|
array|stdClass |
getPayload
()
|
void |
send
()
Sends response to output.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 49 __constructpublic JsonResponse __construct (array|stdClass $payload, [string $contentType =
|
|||||||||||||||
line 63 getPayloadpublic array|stdClass getPayload ()
|
|||||||||||||||
line 74 sendpublic void send () Sends response to output. Implementation of:
|