18 $query =
"SELECT o1.title role,o2.title container FROM object_data o1 ".
19 "JOIN rbac_fa fa ON o1.obj_id = rol_id ".
20 "JOIN tree t1 ON fa.parent = t1.child ".
21 "JOIN object_reference obr ON ref_id = t1.parent ".
22 "JOIN object_data o2 ON obr.obj_id = o2.obj_id ".
23 "WHERE o1.type = 'role' ".
25 "AND ".$ilDB->like(
'o1.title',
'text',
'%'.$a_str.
'%').
" ".
26 "AND fa.parent != 8 ".
27 "ORDER BY role,container";
34 $result[$counter] =
new stdClass();
45 include_once
'./Services/JSON/classes/class.ilJsonUtil.php';
56 global $rbacreview,$ilDB;
58 include_once
'./Services/JSON/classes/class.ilJsonUtil.php';
61 if(strpos($a_str,
'@') !== 0)
66 $a_str = substr($a_str,1);
69 $query =
"SELECT ref_id, title FROM object_data ode ".
70 "JOIN object_reference ore ON ode.obj_id = ore.obj_id ".
71 "WHERE ".$ilDB->like(
'title',
'text',$a_str.
'%').
' '.
77 $rolf = $rbacreview->getRoleFolderIdOfObject(
$row->ref_id);
80 foreach($rbacreview->getRolesOfRoleFolder($rolf,
false) as $rol_id)
84 $result[$counter] =
new stdClass();
85 $result[$counter]->value = $role;
86 $result[$counter]->label = $role.
" (".
$row->title.
")";