| [ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 202 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
JsonResponse:: (6 methods):
__construct()
create()
setCallback()
setData()
update()
transformJsonError()
Class: JsonResponse - X-Ref
Response represents an HTTP response in JSON format.| __construct($data = null, $status = 200, $headers = array() X-Ref |
| Constructor. param: mixed $data The response data param: int $status The response status code param: array $headers An array of response headers |
| create($data = null, $status = 200, $headers = array() X-Ref |
| {@inheritdoc} |
| setCallback($callback = null) X-Ref |
| Sets the JSONP callback. param: string|null $callback The JSONP callback or null to use none return: JsonResponse |
| setData($data = array() X-Ref |
| Sets the data to be sent as JSON. param: mixed $data return: JsonResponse |
| update() X-Ref |
| Updates the content and headers according to the JSON data and callback. return: JsonResponse |
| transformJsonError() X-Ref |
| No description |
| Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |