TW_errors($options); // TODO: add your own module initializations here } // You must implement your own add method. function add($errval, $position, $show_code, $param1=null, $param2=null ) { $err_id = "TW_err_".$this->identifier++; // // This is basic error implementation. Modify this code only if you really need it. // $this->ErrorArray[$err_id] = array($errval, $param1, $param2, $position, $show_code); if($errval & 0xff00) $this->IsError = 1; // TODO: create your output additions here, and return it as string return null; } // TODO: // You can implement ohther methods here. // For example: special error filters, post-parsing functions for generating // error lists, etc... } ?>