0.3.0 inital import
[mailer.git] / inc / classes / main / debug / class_DebugWebOutput.php
1 <?php
2 /**
3  * A debug output class for the web browser
4  */
5 class DebugWebOutput extends BaseFrameworkSystem implements Debugger {
6         /**
7          * Private constructor
8          *
9          * @return      void
10          */
11         private function __construct () {
12                 // Call parent constructor
13                 parent::constructor(__CLASS__);
14
15                 // Set description
16                 $this->setPartDescr("Debug-Ausgabe auf Konsole");
17
18                 // Create an unique ID
19                 $this->createUniqueID();
20         }
21
22         /**
23          * Creates an instance of this class
24          *
25          * @return      $debugInstance          The prepared debug instance
26          */
27         public final static function createDebugWebOutput () {
28                 // Get a new instance
29                 $debugInstance = new DebugWebOutput();
30
31                 // Return it
32                 return $debugInstance;
33         }
34
35         /**
36          * Outputs the given data directly
37          *
38          * @param               $output The HTML output
39          * @return      void
40          */
41         public final function outputStream ($output) {
42                 trigger_error($output);
43         }
44 }
45
46 // [EOF]
47 ?>