29 $this->parent_id = $a_parent_id;
35 $this->parent_id = $a_parent_id;
45 include_once
'./Services/User/classes/class.ilObjUser.php';
49 foreach($users_data as $usr_data)
51 if(!$a_filter or $a_filter == $usr_data[
'time_limit_owner'])
56 return $users ? $users : array();
61 global
$ilDB,$rbacsystem;
63 $query =
"SELECT DISTINCT(time_limit_owner) as parent_id FROM usr_data ";
68 if($rbacsystem->checkAccess(
'read_users',
$row->parent_id) or $rbacsystem->checkAccess(
'cat_administrate_users',
$row->parent_id))
72 $parent[] =
$row->parent_id;
76 return $parent ? $parent : array();
101 $where =
"WHERE time_limit_owner = ".$ilDB->quote($a_filter,
"integer").
" ";
106 $query =
"SELECT usr_id FROM usr_data ".$where;
109 while(
$row = $ilDB->fetchObject(
$res))
111 $users[] =
$row->usr_id;
114 return $users ? $users : array();