// ----------------------------------------------------------------------- /** * get() * * @param string $orderBy * @return object */ public function get($orderBy = '') { $data = []; $query = $this->db->order_by($orderBy)->get($this->tableName); if ($query->num_rows() > 0) { $data = $query->result(); } $query->free_result(); return $data; }