db_name = $str_dbname; // execute connection $this->connect(); } /** * Method to invoke connection to ISIS database * * @return void */ function connect() { $open = @isis_open($this->db_name, $this->isis_opt); if ($open) { $this->res_conn = $open; } else { $this->error = "Can't make connection to ".strtoupper($this->isis_db)." ISIS database"; parent::showError(true); } } /** * Method to create/send query to RDBMS * * @param string $str_query * @param string $str_query_type * @return object */ function query($str_query = '', $str_query_type = 'query') { if (empty($str_query)) { $this->error = 'Cant send ISIS query because query was empty'; parent::showError(true); } else { $_result = new simbio_isis_result($str_query, $str_query_type, $this->res_conn); // return the result object if ($this->error) { return false; } else { return $_result; } } } /** * Method to close RDBMS connection * * @return void */ public function close() { @isis_close($this->res_conn); } } ?>