XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
JSONDisplayHandler.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
5 {
6 
12  function toDoc(&$oModule)
13  {
14  $variables = $oModule->getVariables();
15  $variables['error'] = $oModule->getError();
16  $variables['message'] = $oModule->getMessage();
17 
18  $json = json_encode2($variables);
19  $json = str_replace(array("\r\n", "\n", "\t"), array('\n', '\n', '\t'), $json);
20  $json = filter_var($json, FILTER_UNSAFE_RAW, FILTER_FLAG_ENCODE_LOW);
21 
22  return $json;
23  }
24 
25 }
26 /* End of file JSONDisplayHandler.class.php */
27 /* Location: ./classes/display/JSONDisplayHandler.class.php */
json_encode2($data)
Definition: func.inc.php:1495