public function getRecords($zone, $force = false)
    {
        if (!isset($this->zones[$zone])) {
            throw new \Exception("Unknown zone {$zone} requested, did you call getZones() first?");
        }
        if (!isset($this->zonerecords[$zone]) || $force) {
            $this->zonerecords[$zone] = $this->fetchRecords($zone);
        }

        return $this->zonerecords[$zone];
    }
public function getRecords($zone, $force = false)
    {
        if (!isset($this->zones[$zone])) {
            throw new \Exception("Unknown zone {$zone} requested, did you call getZones() first?");
        }
        if (!isset($this->zonerecords[$zone]) || $force) {
            $this->zonerecords[$zone] = $this->fetchRecords($zone);
        }

        return $this->zonerecords[$zone];
    }
public function getRecords ( $ zone , $ force = false ) { if ( ! isset ( $ this -> zones [ $ zone ] ) ) { throw new \ Exception ( "Unknown zone {$zone} requested, did you call getZones() first?" ) ; } if ( ! isset ( $ this -> zonerecords [ $ zone ] ) || $ force ) { $ this -> zonerecords [ $ zone ] = $ this -> fetchRecords ( $ zone ) ; } return $ this -> zonerecords [ $ zone ] ; }
User facing function to return possibly cached records for a zone by name
User facing function to return possibly cached records for a zone by name