28 public function __call($a_method, $a_args)
30 if (in_array($a_method, array(
"validate",
"loadXML"))) {
31 set_error_handler(array($this,
"handleError"));
32 $rv = call_user_func_array(array($this->doc, $a_method), $a_args);
33 restore_error_handler();
36 return call_user_func_array(array($this->doc, $a_method), $a_args);
45 if ($a_mem ==
"errors") {
48 return $this->doc->$a_mem;
55 public function __set($a_mem, $a_val)
57 $this->_delegate->$a_mem = $a_val;
63 public function handleError($a_no, $a_string, $a_file = null, $a_line = null, $a_context = null)
65 $pos = strpos($a_string,
"]:");
66 $err = trim(substr($a_string, $pos + 2));
67 $this->errors[] = $err;
handleError($a_no, $a_string, $a_file=null, $a_line=null, $a_context=null)
Handle error.
__construct()
Constructor.
__call($a_method, $a_args)
Call.
__set($a_mem, $a_val)
Set.