Esempio n. 1
0
 public function getCity($params = '', $city_iso = null)
 {
     $options = array();
     parse_str($params, $options);
     $city = isset($city_iso) ? $city_iso : $this->city;
     if (isset($options['as_text'])) {
         $city = Locations::toText($city);
     }
     if (isset($options['short'])) {
         $city = strtoupper(Locations::toText($city, $params));
     }
     return $city;
 }