summaryrefslogtreecommitdiff
path: root/tw/error/__Template_error.php
blob: e8dde2b18ced8dff7d4cc22893e89b674c1a968d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/*
 * tag|wall ver 0.1.0                                  | PHP Tag Filter|
 * ---------------------------------------------------------------------

   Copyright (C) 2002  Juraj 'HVGE' Durech
   Copyright (C) 2002  www.designia.sk
   
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
   
 * ---------------------------------------------------------------------
 * tag|wall error module 
 *
 * description:
 * - TODO: add module description
 *
 * output modifications:
 * - TODO: add your output modifications here
 */
class ???_error extends TW_errors
{
	// TODO: add module depended variables here
	
	// Class constructor
	// NOTE: parser calling this with his options. See twParser constructor.
	//
	function ???_error($options = 0)
	{
		// call parent class constructor
		$this->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...

}
?>