public function loadCities($prefix = NULL)
    {
        if (!$this->getCountryIso()) {
            throw new CountryException("ISO code is undefined");
        }

        if (!$this->_loadedCities) {
            $response = $this->call("getdidwwregions", array(
                "country_iso" => $this->getCountryIso(),
                "city_prefix" => $prefix
            ));


            $country = reset($response);
            $this->fromArray((array)$country);
            $this->_loadedCities = true;
        }
        return $this;
    }
public function loadCities($prefix = NULL)
    {
        if (!$this->getCountryIso()) {
            throw new CountryException("ISO code is undefined");
        }

        if (!$this->_loadedCities) {
            $response = $this->call("getdidwwregions", array(
                "country_iso" => $this->getCountryIso(),
                "city_prefix" => $prefix
            ));


            $country = reset($response);
            $this->fromArray((array)$country);
            $this->_loadedCities = true;
        }
        return $this;
    }
public function loadCities ( $ prefix = NULL ) { if ( ! $ this -> getCountryIso ( ) ) { throw new CountryException ( "ISO code is undefined" ) ; } if ( ! $ this -> _loadedCities ) { $ response = $ this -> call ( "getdidwwregions" , array ( "country_iso" => $ this -> getCountryIso ( ) , "city_prefix" => $ prefix ) ) ; $ country = reset ( $ response ) ; $ this -> fromArray ( ( array ) $ country ) ; $ this -> _loadedCities = true ; } return $ this ; }
method load cities from API2
@link http://open.didww.com/index.php/1._Get_DIDWW_Regions} read for details of API method
@param string $prefix
@return \Didww\API2\Country
method load cities from API2