/** * @param $bannerId * @return String */ private function getAccountIdFromBannerId($bannerId) { $banner = new Pap_Db_Banner(); $banner->setPrimaryKeyValue($bannerId); try { $banner->load(); } catch (Gpf_DbEngine_NoRowException $e) { throw new Gpf_Exception($this->_('Banner with id %s does not exist.', $bannerId)); } return $banner->getAccountId(); }