]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/output/class_
Continued:
[core.git] / framework / main / classes / output / class_
index 7504b6358050777586d120da20e8791ae125e6dc..6eb9f1a1a7f11fb94e857a1eb97b0443920581d6 100644 (file)
@@ -1,10 +1,17 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Output\;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+
 /**
  * A ??? output class
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2021 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -32,7 +39,7 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable {
         *
         * @return      void
         */
-       protected function __construct () {
+       private function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
        }
@@ -50,14 +57,14 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable {
                        self::$!!!Instance = new WebOutput();
 
                        // Get the content type
-                       $contentType = self::$!!!Instance->getConfigInstance()->getConfigEntry('!!!_content_type');
+                       $contentType = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('!!!_content_type');
 
                        // Set the content type
                        if (!empty($contentType)) {
                                // Set the header
-                               $applicationInstance->getResponseInstance()->addHeader('Content-type', $contentType);
-                       } // END - if
-               } // END - if
+                               FrameworkBootstrap::getResponseInstance()->addHeader('Content-type', $contentType);
+                       }
+               }
 
                // Return instance
                return self::$!!!Instance;
@@ -71,7 +78,7 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable {
         * @return      void
         * @todo        0% done
         */
-       public final function output ($outStream = FALSE, $stripTags = FALSE) {
+       public final function output ($outStream = false, $stripTags = false) {
                $this->partialStub('Please implement this method. outStream()=' . strlen($outStream) . ',stripTags=' . intval($stripTags));
        }
 
@@ -94,7 +101,7 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function seek ($offset, $whence = SEEK_SET) {
-               self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence);
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('OUTPUT: offset=' . $offset . ',whence=' . $whence);
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
@@ -107,7 +114,5 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable {
        public function size () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
-}
 
-// [EOF]
-?>
+}