X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresponse%2Fconsole%2Fclass_ConsoleResponse.php;h=4c7ea2a23e09c144a3cb99a5247f63281a12e84f;hp=88e1dd804a3a48ce55a56fb9d42f6eb7ae94dfe9;hb=51caaa61ae7ee017abdfd116bbd8c438451315b2;hpb=e3e2463a679ef98773b81be7b0a364edd0537930 diff --git a/inc/classes/main/response/console/class_ConsoleResponse.php b/inc/classes/main/response/console/class_ConsoleResponse.php index 88e1dd80..4c7ea2a2 100644 --- a/inc/classes/main/response/console/class_ConsoleResponse.php +++ b/inc/classes/main/response/console/class_ConsoleResponse.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -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_console_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]