[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 4 * This file is part of the phpBB Forum Software package. 5 * 6 * @copyright (c) phpBB Limited <https://www.phpbb.com> 7 * @license GNU General Public License, version 2 (GPL-2.0) 8 * 9 * For full copyright and license information, please see 10 * the docs/CREDITS.txt file. 11 * 12 */ 13 14 namespace phpbb; 15 16 /** 17 * JSON class 18 */ 19 class json_response 20 { 21 /** 22 * Send the data to the client and exit the script. 23 * 24 * @param array $data Any additional data to send. 25 * @param bool $exit Will exit the script if true. 26 */ 27 public function send($data, $exit = true) 28 { 29 header('Content-Type: application/json'); 30 echo json_encode($data); 31 32 if ($exit) 33 { 34 garbage_collection(); 35 exit_handler(); 36 } 37 } 38 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |