/** * @param Mana_Filters_Model_Filter2_Store $filterOptions * @throws Exception * @return bool */ public function isFilterEnabled($filterOptions) { switch ($this->getMode()) { case 'category': return $filterOptions->getIsEnabled(); case 'search': return $filterOptions->getIsEnabledInSearch(); default: throw new Exception('Not implemented'); } }