示例#1
0
 public function get_many($where = false, $like = false, $order = false, $group = false, $select = false, $limit = false, $array = false)
 {
     //overrides parent method get_many
     $this->db->join('nodes', 'nodes.node_id = pages.page_id');
     $this->db->join('users', 'users.user_id = nodes.user_id');
     return parent::get_many(array_merge(array('module' => 'page'), $where), $like, $order, $group, $select ? $select : 'users.*, nodes.* ,pages.*', $limit, $array);
 }
示例#2
0
 public function get_many($where)
 {
     //overrides parent method get_many
     $this->db->join('nodes', 'nodes.node_id = replies.reply_id');
     //$this->db->join('nodes', 'nodes.node_id = replies.reply_id');
     return parent::get_many(array_merge(array('module' => 'reply'), $where));
 }
示例#3
0
 public function get_many($where = false, $like = false, $order = false, $group = false, $select = false, $limit = false, $array = false)
 {
     //overrides parent method get_many
     $this->db->join('nodes', 'nodes.node_id = comments.comment_id');
     $this->db->join('users', 'nodes.user_id = users.user_id');
     return parent::get_many(array_merge(array('module' => 'comment'), $where), $like, $order, $group, $select != '' ? $select : 'users.uri as uri_user, users.*, nodes.*, comments.*', $limit, $array);
 }
示例#4
0
 public function get_many($where = false, $like = false, $order = false, $group = false, $limit = false)
 {
     //overrides parent method get_many
     $this->db->select('roles.*, users.*');
     $this->db->join('roles', 'roles.role_id = users.role_id');
     $this->db->group_by('users.user_id');
     return parent::get_many($where, $like, $order, $group, $limit);
 }
示例#5
0
 public function get_many($where = false, $like = false, $order = false, $group = false, $select = false, $limit = false, $array = false)
 {
     //overrides parent method get_many
     $this->db->join('roles', 'roles.role_id = role_permissions.role_id');
     return parent::get_many($where, $like, $order, $group, $select, $limit, $array);
 }
示例#6
0
 public function get_many($where = array(), $like = false, $select = false)
 {
     //overrides parent method get_many
     $this->db->join('nodes', 'nodes.node_id = menus.menu_id');
     return parent::get_many(array_merge(array('module' => 'menu'), $where), $like, 'position, module_target', false, $select);
 }