getAreaOfInterest4Select(array('id', 'title'), false, null, 'sorter'); } public function getEmailsForArea($areaId) { $select = $this->_db->select() ->from(array('ai' => $this->_getTableName('AreaOfInterest')), array('recipient')) ->where('`id` = ?', $this->_db->quote($areaId, Zend_Db::INT_TYPE)) ->limit(1); $emails = $this->_db->fetchOne($select); if (empty($emails)) { return array(); } return App_Settings_Obj::parseEmails($emails); } public function code2areaOfInterest($code) { $areas = $this->getAreasForSelect(); if (array_key_exists($code, $areas)) { return $areas[$code]; } else { return ''; } } }