From: Roland Häder Date: Mon, 14 May 2012 20:56:41 +0000 (+0000) Subject: Added FilterChain::getFilters() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b27db9a7336642919dddc3de9695889b05c1b456;p=core.git Added FilterChain::getFilters() --- diff --git a/inc/classes/main/filter/class_FilterChain.php b/inc/classes/main/filter/class_FilterChain.php index 49ca8b22..1eb1bd7a 100644 --- a/inc/classes/main/filter/class_FilterChain.php +++ b/inc/classes/main/filter/class_FilterChain.php @@ -60,6 +60,15 @@ class FilterChain extends BaseFrameworkSystem implements Registerable { $this->filters[] = $filterInstance; } + /** + * Getter for filters array + * + * @return $filters The filters array holding all filter instances + */ + protected function getFilters () { + return $this->filters; + } + /** * Process all added filters * @@ -70,7 +79,7 @@ class FilterChain extends BaseFrameworkSystem implements Registerable { public function processFilters (Requestable $requestInstance, Responseable $responseInstance) { // Run all filters //* DEBUG */ $this->debugOutput('COUNT=' . count($this->filters)); - foreach ($this->filters as $filterInstance) { + foreach ($this->getFilters() as $filterInstance) { // Try to execute this filter try { //* DEBUG */ $this->debugOutput('FILTER: ' . $filterInstance->__toString() . ': Processing started.');