/** * Retrieves Cities * @param int $country_id Id of the country whose cities are to be fetched * @return array */ private function _get_cities($country_id) { // Get the cities $cities = Kohana::config('settings.multi_country') ? City_Model::get_all() : ORM::factory('country', $country_id)->get_cities(); $city_select = array('' => Kohana::lang('ui_main.reports_select_city')); foreach ($cities as $city) { $city_select[$city->city_lon . "," . $city->city_lat] = $city->city; } return $city_select; }