function daftar_per_page($limit = 0, $offset = 0) { $berita = new MY_Model(); $berita->MY_Model("tbl_berita_view"); $berita->order_by("id_berita desc"); return $berita->get_per_page_data($limit, $offset); }
/** * Gets all matches * @param boolean $all If false gets all matches that are not upcoming * @return object Object with match results */ public function get_matches($all = TRUE) { if ($all) { parent::order_by('date', 'DESC'); return parent::get_all(); } else { parent::order_by('date', 'DESC'); $this->db->select('*'); $this->db->where('status !=', '1'); return $this->db->get('matches')->result(); } }
function get_by_album($album_id) { return parent::order_by('`order`')->get_many_by('album_id', $album_id); }