Ejemplo n.º 1
0
 function instance($role_id)
 {
     $role = parent::instance($role_id);
     if ($role) {
         $rows = $this->db->select('select * from sdb_lnk_acts where role_id=' . intval($role_id));
         foreach ($rows as $r) {
             $role['actions'][] = $r['action_id'];
         }
     }
     return $role;
 }