public function getDomains() {
    $domains = array();
    $checks = $this->getChecks();
    foreach ($checks as $check) {
      $domains[$check->id] = $check->hostname;
    }
    return $domains;
  }
public function getDomains() {
    $domains = array();
    $checks = $this->getChecks();
    foreach ($checks as $check) {
      $domains[$check->id] = $check->hostname;
    }
    return $domains;
  }
public function getDomains ( ) { $ domains = array ( ) ; $ checks = $ this -> getChecks ( ) ; foreach ( $ checks as $ check ) { $ domains [ $ check -> id ] = $ check -> hostname ; } return $ domains ; }
Fetches the list of domains being monitored in Pingdom.

@return array
An array of domains, indexed by check ID.
Fetches the list of domains being monitored in Pingdom .