X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Foutput%2Fclass_WebOutput.php;h=9f8b6a20ee9ce3944081a862a232bbd4e9b54a45;hp=b0f2f4e300a9c3858034c671ef8f3a1975d4b226;hb=66e68715d3d5a5e7fd5a3046471914ef3f9dd4b4;hpb=a3fa89c7cbc54491fc74f13db0927d14acf550c8 diff --git a/inc/classes/main/output/class_WebOutput.php b/inc/classes/main/output/class_WebOutput.php index b0f2f4e3..9f8b6a20 100644 --- a/inc/classes/main/output/class_WebOutput.php +++ b/inc/classes/main/output/class_WebOutput.php @@ -3,11 +3,11 @@ * This class simply puts HTML code / JavaScript code or CSS code out to the * browser * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.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 @@ -26,7 +26,7 @@ class WebOutput extends BaseFrameworkSystem implements OutputStreamer, Registera /** * The instance for the singleton design pattern */ - private static $webInstance = null; + private static $webInstance = NULL; /** * Protected constructor @@ -45,7 +45,7 @@ class WebOutput extends BaseFrameworkSystem implements OutputStreamer, Registera * @return $debugInstance An instance of this middleware class */ public static final function createWebOutput (ManageableApplication $applicationInstance) { - // Is there no instance? + // Is the self-instance already set? if (is_null(self::$webInstance)) { // Get a new instance and set it self::$webInstance = new WebOutput(); @@ -67,9 +67,11 @@ class WebOutput extends BaseFrameworkSystem implements OutputStreamer, Registera /** * Output the code * + * @param $outStream Stream to output + * @param $stripTags Whether HTML tags shall be stripped out * @return void */ - public final function output ($outStream = false) { + public final function output ($outStream = FALSE, $stripTags = FALSE) { print(stripslashes($outStream)); } }