From: Roland Haeder Date: Wed, 25 Mar 2015 08:35:16 +0000 (+0100) Subject: Possibly the HTML version won't have any shutdown filter, but let's see. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11d8533b6eecc15a868dc0e1bf81cb2d699a618b;p=city.git Possibly the HTML version won't have any shutdown filter, but let's see. Signed-off-by: Roland Haeder --- diff --git a/application/city/main/controller/html/class_CityHtmlDefaultNewsController.php b/application/city/main/controller/html/class_CityHtmlDefaultNewsController.php index b8c2fd5..63071a9 100644 --- a/application/city/main/controller/html/class_CityHtmlDefaultNewsController.php +++ b/application/city/main/controller/html/class_CityHtmlDefaultNewsController.php @@ -30,6 +30,11 @@ class CityHtmlDefaultNewsController extends BaseController implements Controller protected function __construct () { // Call parent constructor parent::__construct(__CLASS__); + + // Init additional filter chains + foreach (array('shutdown') as $filterChain) { + $this->initFilterChain($filterChain); + } // END - foreach } /** @@ -82,6 +87,27 @@ class CityHtmlDefaultNewsController extends BaseController implements Controller // Flush the response out $responseInstance->flushBuffer(); } + + /** + * Add a shutdown filter + * + * @param $filterInstance A Filterable class + * @return void + */ + public function addShutdownFilter (Filterable $filterInstance) { + $this->addFilter('shutdown', $filterInstance); + } + + /** + * Executes all shutdown filters + * + * @param $requestInstance A Requestable class + * @param $responseInstance A Responseable class + * @return void + */ + public function executeShutdownFilters (Requestable $requestInstance, Responseable $responseInstance) { + $this->executeFilters('shutdown', $requestInstance, $responseInstance); + } } // [EOF]