/** * Get results * @return array */ public function get_results() { $ret = array(); if (is_object($this->result)) { while ($row = $this->result->fetch_object()) { $ret[] = $row; } } return $ret; }