From 9daf4133bf6f61cbe3787a46b021d261242a85f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 19 May 2007 08:34:02 +0100 Subject: add tagwall --- tw/error/__Template_error.php | 69 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tw/error/__Template_error.php (limited to 'tw/error/__Template_error.php') diff --git a/tw/error/__Template_error.php b/tw/error/__Template_error.php new file mode 100644 index 000000000..194f4a272 --- /dev/null +++ b/tw/error/__Template_error.php @@ -0,0 +1,69 @@ +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... + +} +?> \ No newline at end of file -- cgit v1.2.3