]>
src.bluestatic.org Git - bugdar.git/blob - class_message_reporter.php
e88d926034e907d4bff88b31b3c4977645cc6800
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 \*=====================================================================*/
13 class Message_Reporter
18 function error($text = '')
22 if (is_array($this->phrase
) AND empty($this->process
))
24 trigger_error('Message_Reporter::phrase is an array so please use Message_Reporter::error_list_process() to prepare it', E_USER_ERROR
);
27 if (empty($this->process
))
29 $this->process
= phrase($this->phrase
);;
32 $this->process
= (($text) ? $text : $this->process
);
34 $errormessage = $this->process
;
36 eval('$bugsys->template->flush("' . $bugsys->template
->fetch('std_error') . '");');
40 function error_list_process()
42 if (!is_array($this->phrase
) OR count($this->phrase
) < 1)
47 $this->process
= "\n\n<ol style=\"list-style-type: decimal\">";
48 foreach ($this->phrase
AS $phrase)
50 $this->process
.= "\n\t<li>" . phrase($phrase) . "</li>";
52 $this->process
.= "\n</ol>";
55 function error_permission()
57 $this->phrase
= 'error_no_permission';
62 /*=====================================================================*\
63 || ###################################################################
66 || ###################################################################
67 \*=====================================================================*/