ILIAS
Release_4_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
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
Services
Html
HtmlPurifier
library
HTMLPurifier
VarParser
Native.php
Generated on Wed Apr 27 2016 19:01:43 for ILIAS by
1.8.1.2 (using
Doxyfile
)