$this->pushValueToGenericArrayKey('filters', 'generic', 'dummy', $filterInstance);
}
+ /**
+ * Add a new post-filter
+ *
+ * @param $filerInstance An instance of a post-filter class
+ * @return void
+ */
+ public final function addPostFilter (Filterable $filterInstance) {
+ $this->pushValueToGenericArrayKey('filters', 'post', 'dummy', $filterInstance);
+ }
+
/**
* "Getter" for filters array
*
return $filters;
}
+ /**
+ * "Getter" for post-filters array
+ *
+ * @return $filters The filters array holding all post-filter instances
+ */
+ protected function getPostFilters () {
+ // Default is nothing found
+ $filters = array();
+
+ // Are some filters set?
+ if ($this->isValidGenericArrayKey('filters', 'post', 'dummy')) {
+ // Then get them
+ $filters = $this->getGenericArrayKey('filters', 'post', 'dummy');
+ } // END - if
+
+ // Return it
+ return $filters;
+ }
+
/**
* Process all added filters. Please note that filters must throw
* FilterChainException if they need to interrupt the filter chain.