]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/response/console/class_ConsoleResponse.php
Copyright updated
[core.git] / inc / classes / main / response / console / class_ConsoleResponse.php
index dcd25d378a92900931927ae7c8e24e6fc422a88c..12af28f02b76ed9e14202a794dcc3b6ede54f49d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -41,7 +41,7 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         * @param       $appInstance            An instance of a manageable application
         * @return      $responseInstance       A prepared instance of this class
         */
-       public final static function createConsoleResponse (ManageableApplication $appInstance) {
+       public static final function createConsoleResponse (ManageableApplication $appInstance) {
                // Get a new instance
                $responseInstance = new ConsoleResponse();
 
@@ -118,9 +118,22 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         * @return      $defaultCommand         Default command for this response
         */
        public function getDefaultCommand () {
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command');
+               $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_console_command');
                return $defaultCommand;
        }
+
+       /**
+        * Flushs the cached console response to the console
+        *
+        * @param       $force  Wether we shall force the output or abort if headers are
+        *                                      already sent with an exception
+        * @return      void
+        * @throws      ResponseHeadersAlreadySentException             Thrown if headers are
+        *                                                                                                      already sent
+        */
+       public function flushBuffer ($force = false) {
+               $this->partialStub('Please implement this class.');
+       }
 }
 
 // [EOF]