X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fdebug%2Fclass_DebugConsoleOutput.php;h=82bcd7f1fe8df8a9810456bc479847ae4af19f18;hp=46205f48b3982ee8dbe5e32d7759f4da7fd3dfc2;hb=43c787767e99231011b3322e436c7d9b1bbf9746;hpb=f1d358441b193b364d57788d660e6649d0229ca6 diff --git a/inc/classes/main/debug/class_DebugConsoleOutput.php b/inc/classes/main/debug/class_DebugConsoleOutput.php index 46205f48b3..82bcd7f1fe 100644 --- a/inc/classes/main/debug/class_DebugConsoleOutput.php +++ b/inc/classes/main/debug/class_DebugConsoleOutput.php @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger { +class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer { /** * Private constructor * @@ -60,6 +60,30 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger { public final function outputStream ($output) { print html_entity_decode(strip_tags($output)); } + + /** + * Assigns a variable for output + * + * @param $var The variable we shall assign + * @param $value The value to store in the variable + * @return void + */ + public final function assignVariable ($var, $value) { + // Empty stub! + trigger_error(__METHOD__.": Stub!"); + } + + /** + * Output the code + * + * @return void + */ + public final function output ($outStream=false) { + // Empty output will be silently ignored + if ($outStream !== false) { + $this->outputStream($outStream); + } + } } // [EOF]