ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
Native.php
Go to the documentation of this file.
1 <?php
2 
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