public function disconnect() {
    if ($this->connected) {
      if (is_resource($this->link)) {
        pg_close($this->link);
      }
      $this->connected = false;
    }
    return $this->connected;
  }
public function disconnect() {
    if ($this->connected) {
      if (is_resource($this->link)) {
        pg_close($this->link);
      }
      $this->connected = false;
    }
    return $this->connected;
  }
public function disconnect ( ) { if ( $ this -> connected ) { if ( is_resource ( $ this -> link ) ) { pg_close ( $ this -> link ) ; } $ this -> connected = false ; } return $ this -> connected ; }
Disconnect from the PostgreSQL database.

@return bool Whether this instance is connected to a PostgreSQL database
after the method has run.
Disconnect from the PostgreSQL database .