49 $this->parent_id = $a_parent_id;
55 $this->parent_id = $a_parent_id;
65 include_once
'./Services/User/classes/class.ilObjUser.php';
69 foreach($users_data as $usr_data)
71 if(!$a_filter or $a_filter == $usr_data[
'time_limit_owner'])
76 return $users ? $users : array();
81 global $ilDB,$rbacsystem;
83 $query =
"SELECT DISTINCT(time_limit_owner) as parent_id FROM usr_data ";
85 $res = $ilDB->query($query);
88 if($rbacsystem->checkAccess(
'read_users',$row->parent_id) or $rbacsystem->checkAccess(
'cat_administrate_users',$row->parent_id))
92 $parent[] = $row->parent_id;
96 return $parent ? $parent : array();
106 $where =
"WHERE time_limit_owner IN ";
114 $where =
"WHERE time_limit_owner IN ('')";
120 $where =
"WHERE time_limit_owner = ".$ilDB->quote($a_filter).
" ";
125 $query =
"SELECT usr_id FROM usr_data ".$where;
126 $res = $ilDB->query($query);
130 $users[] = $row->usr_id;
133 return $users ? $users : array();