class_DebugConsoleOutput.php

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

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