ILIAS
Release_5_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
17
protected
function
parseImplementation
($var, $type, $allow_null)
18
{
19
return
$this->
evalExpression
($var);
20
}
21
27
protected
function
evalExpression
($expr)
28
{
29
$var = null;
30
$result
= eval(
"\$var = $expr;"
);
31
if
(
$result
===
false
) {
32
throw
new
HTMLPurifier_VarParserException
(
"Fatal error in evaluated code"
);
33
}
34
return
$var;
35
}
36
}
37
38
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
VarParser
Native.php
Generated on Wed Apr 27 2016 21:01:41 for ILIAS by
1.8.1.2 (using
Doxyfile
)