X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fdebug%2Fclass_DebugConsoleOutput.php;h=77b28b4bebf6a6982af80f8b6df183d065ffc462;hb=b5860116558d94e2f8689cd385670814e9d80f88;hp=8cc9cfb1d4fa5be66ff9c8d36de2db0f3b3b0bad;hpb=a614592758896a73b1af984cb4f88c35cf06c437;p=hub.git diff --git a/inc/classes/main/debug/class_DebugConsoleOutput.php b/inc/classes/main/debug/class_DebugConsoleOutput.php index 8cc9cfb1d..77b28b4be 100644 --- a/inc/classes/main/debug/class_DebugConsoleOutput.php +++ b/inc/classes/main/debug/class_DebugConsoleOutput.php @@ -2,11 +2,11 @@ /** * A debug output class for the console (e.g. hub software) * - * @author Roland Haeder - * @version 0.3.0 + * @author Roland Haeder + * @version 0.0.0 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,23 +19,23 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * along with this program. If not, see . */ -class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer { +class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer, Registerable { /** - * Private constructor + * Protected constructor * * @return void */ - private function __construct () { + protected function __construct () { // Call parent constructor - parent::constructor(__CLASS__); + parent::__construct(__CLASS__); // Set description - $this->setPartDescr("Debug-Ausgabe auf Konsole"); + $this->setObjectDescription("Debug output for the console"); // Create an unique ID - $this->createUniqueID(); + $this->generateUniqueId(); } /** @@ -68,7 +68,7 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output * @param $value The value to store in the variable * @return void */ - function assignVariable ($var, $value) { + public final function assignVariable ($var, $value) { // Empty stub! trigger_error(__METHOD__.": Stub!"); } @@ -78,7 +78,8 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output * * @return void */ - function output ($outStream=false) { + public final function output ($outStream=false) { + // Empty output will be silently ignored if ($outStream !== false) { $this->outputStream($outStream); }