query_string = $str_query; $this->query_type = $str_query_type; $this->sendQuery($res_conn); } /** * Method to send ISIS DB query * * @param resource $res_conn * @return void */ function sendQuery($res_conn) { if (($this->query_type == 'search') OR ($this->keywords == '$')) { $this->res_result = @isis_search($this->query_string, $res_conn); } else { $this->res_result = @isis_query($this->query_string, $res_conn); } if ($this->res_result) { // set the num rows property $this->num_rows = @isis_num_rows($this->res_result); return true; } else { return false; } } /** * Method to fetch record * * @return array */ function fetch_assoc() { if (!$this->res_result) { $this->error = "No Resultset can be fetched from query"; return null; } else { $_rec = @isis_fetch_flat_array($this->res_result); } return $_rec; } /** * Method to fetch record * * @return array */ public function fetch_row() { return $this->fetch_assoc(); } /** * Method to free resultset memory * * @return void */ function free_result() { if ($this->res_result) { @isis_free_result($this->res_result); } } } ?>