Class NJsonResponse


JSON response used for AJAX requests.

NObject
   |
   --NJsonResponse

Implements interfaces:

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

Method Details

line 49

__construct

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

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

line 63

getPayload

public array|stdClass getPayload ()

Output
array|stdClass  

line 74

send

public void send ()

Sends response to output.

Implementation of:

Output
void