XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
Native.php
Go to the documentation of this file.
1
<?php
2
8
class
HTMLPurifier_VarParser_Native
extends
HTMLPurifier_VarParser
9
{
10
11
protected
function
parseImplementation
(
$var
,
$type
, $allow_null) {
12
return
$this->
evalExpression
(
$var
);
13
}
14
15
protected
function
evalExpression
($expr) {
16
$var
= null;
17
$result
= eval(
"\$var = $expr;"
);
18
if
(
$result
===
false
) {
19
throw
new
HTMLPurifier_VarParserException
(
"Fatal error in evaluated code"
);
20
}
21
return
$var
;
22
}
23
24
}
25
26
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
VarParser
Native.php
Generated on Fri May 10 2013 01:04:31 for XOOPS 2.5.6 by
1.8.3.1