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

            $response = $this->call("getdidwwpstnrates", array(
                "country_iso" => $this->getCountryIso(),
                "pstn_prefix" => $networkPrefix
            ));
            $country = reset($response);
            $this->fromArray((array)$country);
            $this->_loadedNetworks = true;
        }
        return $this;
    }
public function loadPSTNNetworks($networkPrefix = NULL)
    {
        if (!$this->getCountryIso()) {
            throw new CountryException("ISO code is undefined");
        }
        if (!$this->_loadedNetworks) {

            $response = $this->call("getdidwwpstnrates", array(
                "country_iso" => $this->getCountryIso(),
                "pstn_prefix" => $networkPrefix
            ));
            $country = reset($response);
            $this->fromArray((array)$country);
            $this->_loadedNetworks = true;
        }
        return $this;
    }
public function loadPSTNNetworks ( $ networkPrefix = NULL ) { if ( ! $ this -> getCountryIso ( ) ) { throw new CountryException ( "ISO code is undefined" ) ; } if ( ! $ this -> _loadedNetworks ) { $ response = $ this -> call ( "getdidwwpstnrates" , array ( "country_iso" => $ this -> getCountryIso ( ) , "pstn_prefix" => $ networkPrefix ) ) ; $ country = reset ( $ response ) ; $ this -> fromArray ( ( array ) $ country ) ; $ this -> _loadedNetworks = true ; } return $ this ; }
method to load pstn networks from API2
@link http://open.didww.com/index.php/2._Get_DIDWW_PSTN_Rates read for details of API method
@param string $networkPrefix
@return \Didww\API2\Country
method to load pstn networks from API2