]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/filter/class_FilterChain.php
Patches for making new generic array working
[core.git] / inc / classes / main / filter / class_FilterChain.php
index ef173181f0acb042e645749d28bbf781224b153b..4f15fa13cd51334e349ecd8c2c52d4341936dc32 100644 (file)
@@ -61,7 +61,7 @@ class FilterChain extends BaseFrameworkSystem implements Registerable {
         * @return      $filters        The filters array holding all filter instances
         */
        protected function getFilters () {
-               return $this->getGenericArray('filters');
+               return $this->getGenericArrayKey('filters', 'generic', 'dummy');
        }
 
        /**
@@ -75,6 +75,9 @@ class FilterChain extends BaseFrameworkSystem implements Registerable {
                // Run all filters
                //* DEBUG */ self::createDebugInstance(__CLASS__)->debugOutput('COUNT=' . $this->countGenericArray('filters'));
                foreach ($this->getFilters() as $filterInstance) {
+                       // Must be an instance of Filterable
+                       assert($filterInstance instanceof Filterable);
+
                        // Try to execute this filter
                        try {
                                //* DEBUG */ self::createDebugInstance(__CLASS__)->debugOutput('FILTER: ' . $filterInstance->__toString() . ': Processing started.');