r169: Checking in the non-working class_error.php file
[bugdar.git] / includes / class_error.php
1 <?php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # BugStrike [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
12
13 class Error
14 {
15 var $phrase = null;
16 var $process = '';
17
18 function throw()
19 {
20 global $bugsys;
21
22 if (empty($this->process))
23 {
24 $this->process = $this->phrase;
25 }
26
27 return
28 }
29
30 function list()
31 {
32 if (!is_array($phrase))
33 {
34 trigger_error('Error::list() requires Error::phrase to be an array', E_USER_ERROR);
35 }
36
37 $this->process = "\n\n<ol>";
38 foreach ($this->phrase AS $phrase)
39 {
40 $this->process .= "\n\t<ul>" . phrase($this->phrase);
41 }
42 $this->process .= "\n</ol>";
43 }
44 }
45
46 /*=====================================================================*\
47 || ###################################################################
48 || # $HeadURL$
49 || # $Id$
50 || ###################################################################
51 \*=====================================================================*/
52 ?>