XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
JSCallbackDisplayHandler.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  $json = str_replace(array("\r\n", "\n", "\t"), array('\n', '\n', '\t'), json_encode2($variables));
18  return sprintf('<script type="text/javascript">
19 //<![CDATA[
20 %s(%s);
21 //]]>
22 </script>', Context::getJSCallbackFunc(), $json);
23  }
24 
25 }
26 /* End of file JSCallback.class.php */
27 /* Location: ./classes/display/JSCallback.class.php */
json_encode2($data)
Definition: func.inc.php:1495