3 * A debug output class for the console (e.g. hub software)
5 class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
11 private function __construct () {
12 // Call parent constructor
13 parent::constructor(__CLASS__);
16 $this->setPartDescr("Debug-Ausgabe auf Konsole");
18 // Create an unique ID
19 $this->createUniqueID();
23 * Creates an instance of this class
25 * @return $debugInstance The prepared debug instance
27 public final static function createDebugConsoleOutput () {
29 $debugInstance = new DebugConsoleOutput();
32 return $debugInstance;
36 * Outputs the given data without HTML tags
38 * @param $output The HTML'ed output
41 public final function outputStream ($output) {
42 print html_entity_decode(strip_tags($output));
46 * Outputs the given data without HTML tags
48 * @param $output The HTML'ed output
51 public final function output ($outStream=false) {
52 // false will be silently ignored
53 if ($outStream !== false) {
54 $this->outputStream($outStream);
59 * Assigns a variable for output
61 * @param $var The variable we shall assign
62 * @param $value The value to store in the variable
65 public final function assignVariable ($var, $value) {
66 trigger_error(__METHOD__.": Stub!");