31 $this->parent_id = $a_parent_id;
36 $this->parent_id = $a_parent_id;
45 include_once
'./Services/User/classes/class.ilObjUser.php';
49 foreach ($users_data as $usr_data) {
50 if (!$a_filter or $a_filter == $usr_data[
'time_limit_owner']) {
54 return $users ? $users : array();
62 $access = $DIC->access();
63 $rbacsystem = $DIC[
'rbacsystem'];
65 $query =
"SELECT DISTINCT(time_limit_owner) as parent_id FROM usr_data ";
70 if (!$row->parent_id || (
int) $row->parent_id ===
USER_FOLDER_ID) {
73 $parent[] = $row->parent_id;
78 if ($rbacsystem->checkAccess(
'read_users', $row->parent_id) ||
80 or $rbacsystem->checkAccess(
'cat_administrate_users', $row->parent_id)) {
81 if ($row->parent_id) {
82 $parent[] = $row->parent_id;
86 return $parent ? $parent : array();
96 if (self::_getFolderIds()) {
97 $where =
"WHERE " .
$ilDB->in(
"time_limit_owner", self::_getFolderIds(),
false,
"integer") .
" ";
105 $where =
"WHERE time_limit_owner = " .
$ilDB->quote($a_filter,
"integer") .
" ";
110 $query =
"SELECT usr_id FROM usr_data " . $where;
113 while ($row =
$ilDB->fetchObject(
$res)) {
114 $users[] = $row->usr_id;
117 return $users ? $users : array();
setParentId($a_parent_id)
static _getFolderIds($access_with_orgunit=false)
const ORG_OP_EDIT_USER_ACCOUNTS
static _getAllUserData($a_fields=null, $active=-1)
STATIC METHOD get all user data.
foreach($_POST as $key=> $value) $res
static _getUserFolderId()
static _getAllUserIds($a_filter=0)
__construct($a_parent_id)
Constructor public.
static _getUserData($a_filter)