_init('aw_hdu3/template'); } protected function _toOptionHash($valueField = 'id', $labelField = 'title') { return parent::_toOptionHash($valueField, $labelField); } /** * @param int $storeId * * @return $this */ public function addFilterByStoreId($storeId) { $this ->getSelect() ->where("FIND_IN_SET(0, store_ids) OR FIND_IN_SET({$storeId}, store_ids)") ; return $this; } public function addActiveFilter() { return $this->addFieldToFilter('is_active', AW_Helpdesk3_Model_Source_Yesno::YES_VALUE); } }