. */ namespace Volkszaehler\View; use Volkszaehler\View\HTTP; use Volkszaehler\Util; use Volkszaehler\Model; /** * Plain text view * * @author Steffen Vogel * @package default */ class PlainText extends View { /** * constructor */ public function __construct(HTTP\Request $request, HTTP\Response $response) { parent::__construct($request, $response); echo 'source: volkszaehler.org' . PHP_EOL; echo 'version: ' . VZ_VERSION . PHP_EOL; $this->response->setHeader('Content-type', 'text/plain'); } public function addChannel(Model\Channel $channel, array $data = NULL) { var_dump($channel); var_dump($data); } public function addAggregator(Model\Aggregator $aggregator) { var_dump($aggregator); } public function addDebug(Util\Debug $debug) { var_dump($debug); } protected function addException(\Exception $exception) { var_dump($exception); } public function renderResponse() {} } ?>