Class JsonResponse (namespace Nette\Application)


JSON response used for AJAX requests.

Object
   |
   --JsonResponse

Implements interfaces:

Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Application/Responses/JsonResponse.php (line 21)
Public Method Summary
JsonResponse
__construct (array|stdClass $payload, [string $contentType = NULL])
array|stdClass
void
send ()
Sends response to output.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 35

__construct

public JsonResponse __construct (array|stdClass $payload, [string $contentType = NULL])

Input
array|stdClass $payload payload
string $contentType MIME content type
Output
JsonResponse  

line 49

getPayload

public array|stdClass getPayload ()

Output
array|stdClass  

line 60

send

public void send ()

Sends response to output.

Implementation of:

Output
void