]> git.wh0rd.org - tt-rss.git/blob - tw/error/__Template_error.php
e8dde2b18ced8dff7d4cc22893e89b674c1a968d
[tt-rss.git] / tw / error / __Template_error.php
1 <?php
2 /*
3 * tag|wall ver 0.1.0 | PHP Tag Filter|
4 * ---------------------------------------------------------------------
5
6 Copyright (C) 2002 Juraj 'HVGE' Durech
7 Copyright (C) 2002 www.designia.sk
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
23 * ---------------------------------------------------------------------
24 * tag|wall error module
25 *
26 * description:
27 * - TODO: add module description
28 *
29 * output modifications:
30 * - TODO: add your output modifications here
31 */
32 class ???_error extends TW_errors
33 {
34 // TODO: add module depended variables here
35
36 // Class constructor
37 // NOTE: parser calling this with his options. See twParser constructor.
38 //
39 function ???_error($options = 0)
40 {
41 // call parent class constructor
42 $this->TW_errors($options);
43
44 // TODO: add your own module initializations here
45 }
46
47 // You must implement your own add method.
48
49 function add($errval, $position, $show_code, $param1=null, $param2=null )
50 {
51 $err_id = "TW_err_".$this->identifier++;
52 //
53 // This is basic error implementation. Modify this code only if you really need it.
54 //
55 $this->ErrorArray[$err_id] = array($errval, $param1, $param2, $position, $show_code);
56 if($errval & 0xff00) $this->IsError = 1;
57
58 // TODO: create your output additions here, and return it as string
59
60 return null;
61 }
62
63 // TODO:
64 // You can implement ohther methods here.
65 // For example: special error filters, post-parsing functions for generating
66 // error lists, etc...
67
68 }
69 ?>