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
JSCallbackDisplayHandler.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
4
class
JSCallbackDisplayHandler
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
json_encode2($data)
Definition:
func.inc.php:1495
Context\getJSCallbackFunc
getJSCallbackFunc()
Definition:
Context.class.php:1569
JSCallbackDisplayHandler
Definition:
JSCallbackDisplayHandler.php:4
JSCallbackDisplayHandler\toDoc
toDoc(&$oModule)
Definition:
JSCallbackDisplayHandler.php:12
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5