XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
classes
display
JSONDisplayHandler.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
4
class
JSONDisplayHandler
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
json_encode2($data)
Definition:
func.inc.php:1495
JSONDisplayHandler
Definition:
JSONDisplayHandler.php:4
JSONDisplayHandler\toDoc
toDoc(&$oModule)
Definition:
JSONDisplayHandler.php:12
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5