class_DebugWebOutput.php

Go to the documentation of this file.
00001 <?php
00024 class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
00030         protected function __construct () {
00031                 // Call parent constructor
00032                 parent::__construct(__CLASS__);
00033         }
00034 
00040         public final static function createDebugWebOutput () {
00041                 // Get a new instance
00042                 $debugInstance = new DebugWebOutput();
00043 
00044                 // Return it
00045                 return $debugInstance;
00046         }
00047 
00054         public final function outputStream ($output) {
00055                 // Strip out <br />
00056                 $output = str_replace("<br />", "", $output);
00057                 print(stripslashes($output)."<br />\n");
00058         }
00059 
00067         public final function assignVariable ($var, $value) {
00068                 // Empty stub!
00069                 trigger_error(__METHOD__.": Stub!");
00070         }
00071 
00077         public final function output ($outStream=false) {
00078                 // Empty output will be silently ignored
00079                 if ($outStream !== false) {
00080                         $this->outputStream($outStream);
00081                 }
00082         }
00083 }
00084 
00085 // [EOF]
00086 ?>

Generated on Mon Dec 8 01:06:45 2008 for Ship-Simulator by  doxygen 1.5.6