Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / classes / output / debug / console / class_DebugConsoleOutput.php
index 3b6dff705046d6c41bc8a2c2a63ec418f9f9b6a8..113428a409b2af933b98191c03d703b8c5a07904 100644 (file)
@@ -1,12 +1,14 @@
 <?php
 // Own namespace
-namespace CoreFramework\Debug\Output;
+namespace Org\Mxchange\CoreFramework\Debug\Output;
 
 // Import framework stuff
-use CoreFramework\Debug\Debugger;
-use CoreFramework\Output\Debug\BaseDebugOutput;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Stream\Output\OutputStreamer;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Debug\Debugger;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Output\Debug\BaseDebugOutput;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * A debug output class for the console (e.g. hub software)
@@ -61,15 +63,15 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
         * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function outputStream ($output, $stripTags = FALSE) {
+       public final function outputStream ($output, $stripTags = false) {
                // Strip HTML tags out?
-               if ($stripTags === TRUE) {
+               if ($stripTags === true) {
                        // Prepare the output without HTML tags
                        $output = trim(html_entity_decode(strip_tags(stripslashes($output))));
                } // END - if
 
                // Are debug times enabled?
-               if ($this->getConfigInstance()->getConfigEntry('debug_' . self::getResponseTypeFromSystem() . '_output_timings') == 'Y') {
+               if ($this->getConfigInstance()->getConfigEntry('debug_' . FrameworkBootstrap::getRequestTypeFromSystem() . '_output_timings') == 'Y') {
                        // Output it first
                        $output = $this->getPrintableExecutionTime() . $output;
                } // END - if
@@ -85,9 +87,9 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
         * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function output ($outStream = FALSE, $stripTags = FALSE) {
+       public final function output ($outStream = false, $stripTags = false) {
                // Empty output will be silently ignored
-               if ($outStream !== FALSE) {
+               if ($outStream !== false) {
                        $this->outputStream($outStream, $stripTags);
                } // END - if
        }