/** * If allowed, evaluate PHP code. * * @param object $_parser * @param string $target type of processing instruction * @param string $data * * @return string * * @access private */ private function _PIHandler($_parser, $target, $data) { if ('php' == strtolower($target)) { if ($this->parsePHP) { return eval($data); } else { return Strings::entities($data); } } }
/** * Overloaded __set() method - set meta property * * @param string $key * @param mixed $key * @return null * @access public */ public function __set($key, $value) { if (isset($this->{$key})) { $this->properties[$key][0] = Strings::entities($value, true); if (self::ST_DEL == $this->properties[$key][1]) { $this->properties[$key][1] = self::ST_DB; } } else { $this->properties[$key] = array(Strings::entities($value, true), self::ST_DB); } $this->modified = true; }