/** * Get data for user administration list. * @deprecated */ public static function getUserListData($a_order_field, $a_order_dir, $a_offset, $a_limit, $a_string_filter = "", $a_activation_filter = "", $a_last_login_filter = null, $a_limited_access_filter = false, $a_no_courses_filter = false, $a_course_group_filter = 0, $a_role_filter = 0, $a_user_folder_filter = null, $a_additional_fields = '', $a_user_filter = null, $a_first_letter = "") { $query = new ilUserQuery(); $query->setOrderField($a_order_field); $query->setOrderDirection($a_order_dir); $query->setOffset($a_offset); $query->setLimit($a_limit); $query->setTextFilter($a_string_filter); $query->setActionFilter($a_activation_filter); $query->setLastLogin($a_last_login_filter); $query->setLimitedAccessFilter($a_limited_access_filter); $query->setNoCourseFilter($a_no_courses_filter); $query->setCourseGroupFilter($a_course_group_filter); $query->setRoleFilter($a_role_filter); $query->setUserFolder($a_user_folder_filter); $query->setAdditionalFields($a_additional_fields); $query->setUserFilter($a_user_filter); $query->setFirstLetterLastname($a_first_letter); return $query->query(); }
public function getUserIdsForFilter() { if ($this->getMode() == self::MODE_USER_FOLDER) { // All accessible users include_once './Services/User/classes/class.ilLocalUser.php'; $user_filter = ilLocalUser::_getFolderIds(); } else { if ($this->filter['time_limit_owner']) { $user_filter = array($this->filter['time_limit_owner']); } else { // All accessible users include_once './Services/User/classes/class.ilLocalUser.php'; $user_filter = ilLocalUser::_getFolderIds(); } } include_once "./Services/User/classes/class.ilUserQuery.php"; $query = new ilUserQuery(); $query->setOffset(0); $query->setLimit(self::getAllCommandLimit()); $query->setTextFilter($this->filter['query']); $query->setActionFilter($this->filter['activation']); $query->setLastLogin($this->filter['last_login']); $query->setLimitedAccessFilter($this->filter['limited_access']); $query->setNoCourseFilter($this->filter['no_courses']); $query->setNoGroupFilter($this->filter['no_groups']); $query->setCourseGroupFilter($this->filter['course_group']); $query->setRoleFilter($this->filter['global_role']); $query->setUserFolder($user_filter); $query->setFirstLetterLastname(ilUtil::stripSlashes($_GET['letter'])); if ($this->getOrderField()) { $query->setOrderField(ilUtil::stripSlashes($this->getOrderField())); $query->setOrderDirection(ilUtil::stripSlashes($this->getOrderDirection())); } $usr_data = $query->query(); $user_ids = array(); foreach ($usr_data["set"] as $item) { // #11632 if ($item["usr_id"] != SYSTEM_USER_ID) { $user_ids[] = $item["usr_id"]; } } return $user_ids; }