4 * Class Videos_model models videos information from the DB
7 * @author Călin-Andrei Burloiu
9 class Videos_model extends CI_Model {
12 function __construct()
14 if ($this->db === NULL)
16 $this->load->library('singleton_db');
17 $this->db = $this->singleton_db->connect();
21 function getVideosSummary()
23 return $this->db->get('videos');
26 function getVideo($id, $name = NULL)
28 return $this->db->query('SELECT * from videos WHERE id = ?', $id);
32 /* End of file videos_model.php */
33 /* Location: ./application/models/videos_model.php */