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