X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/62842c0ba16bb1dc67435dea7b4d75af7773eacb..6032c11d7a88651d85154ffe835a26b3f569c893:/src/bdrem/Web.php diff --git a/src/bdrem/Web.php b/src/bdrem/Web.php index 10120ec..d85136a 100644 --- a/src/bdrem/Web.php +++ b/src/bdrem/Web.php @@ -1,8 +1,37 @@ + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/bdrem.htm + */ namespace bdrem; +/** + * HTTP user interface that renders a HTML page + * + * @category Tools + * @package Bdrem + * @author Christian Weiske + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @version Release: @package_version@ + * @link http://cweiske.de/bdrem.htm + */ class Web extends UserInterface { + /** + * Load parameters for the CLI option parser. + * Set the default renderer to "html". + * + * @return \Console_CommandLine CLI option parser + */ protected function loadParameters() { $parser = parent::loadParameters(); @@ -12,6 +41,11 @@ class Web extends UserInterface return $parser; } + /** + * Sends HTTP headers before a parameter error is shown + * + * @return void + */ protected function preRenderParameterError() { header('Content-type: text/plain; charset=utf-8');