|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilUserQuery:Public Member Functions | |
| __construct () | |
| setUdfFilter (array $a_val) | |
| Set udf filter. More... | |
| getUdfFilter () | |
| Get udf filter. More... | |
| setOrderField (string $a_order) | |
| Set order field (column in usr_data) Default order is 'login'. More... | |
| setOrderDirection (string $a_dir) | |
| Set order direction 'asc' or 'desc' Default is 'asc'. More... | |
| setOffset (int $a_offset) | |
| setLimit (int $a_limit) | |
| setTextFilter (string $a_filter) | |
| Text (like) filter in login, firstname, lastname or email. More... | |
| setActionFilter (string $a_activation) | |
| Set activation filter 'active' or 'inactive' or empty. More... | |
| setLastLogin (ilDateTime $dt=null) | |
| Set last login filter. More... | |
| setLimitedAccessFilter (bool $a_status) | |
| Enable limited access filter. More... | |
| setNoCourseFilter (bool $a_no_course) | |
| setNoGroupFilter (bool $a_no_group) | |
| setCourseGroupFilter (int $a_cg_id) | |
| Set course / group filter object_id of course or group. More... | |
| setRoleFilter (int $a_role_id) | |
| Set role filter obj_id of role. More... | |
| setUserFolder (?array $a_fold_id) | |
| Set user folder filter reference id of user folder or category (local user administration) More... | |
| setAdditionalFields (array $a_add) | |
| Set additional fields (columns in usr_data or 'online_time') More... | |
| setUserFilter (array $a_filter) | |
| Array with user ids to query against. More... | |
| setFirstLetterLastname (string $a_fll) | |
| set first letter lastname filter More... | |
| setAccessFilter (bool $a_access) | |
| set filter for user that are limited but has access More... | |
| setAuthenticationFilter (string $a_authentication) | |
| Set authentication filter. More... | |
| query () | |
| Query usr_data. More... | |
Static Public Member Functions | |
| static | getUserListData (string $a_order_field, string $a_order_dir, int $a_offset, int $a_limit, string $a_string_filter="", string $a_activation_filter="", ?ilDateTime $a_last_login_filter=null, bool $a_limited_access_filter=false, bool $a_no_courses_filter=false, int $a_course_group_filter=0, int $a_role_filter=0, array $a_user_folder_filter=null, array $a_additional_fields=null, array $a_user_filter=null, string $a_first_letter="", string $a_authentication_filter="") |
| Get data for user administration list. More... | |
Data Fields | |
| const | DEFAULT_ORDER_FIELD = 'login' |
Protected Attributes | |
| array | $udf_filter = array() |
Private Attributes | |
| string | $order_field = self::DEFAULT_ORDER_FIELD |
| string | $order_dir = 'asc' |
| int | $offset = 0 |
| int | $limit = 50 |
| string | $text_filter = '' |
| string | $activation = '' |
| ilDateTime | $last_login = null |
| bool | $limited_access = false |
| bool | $no_courses = false |
| bool | $no_groups = false |
| int | $crs_grp = 0 |
| int | $role = 0 |
| array | $user_folder = null |
| array | $additional_fields = array() |
| array | $users = array() |
| string | $first_letter = '' |
| bool | $has_access = false |
| string | $authentication_method = '' |
| array | $default_fields |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning User query class. Put any complex that queries for a set of users into this class and keep ilObjUser "small".
Definition at line 24 of file class.ilUserQuery.php.
| ilUserQuery::__construct | ( | ) |
Definition at line 62 of file class.ilUserQuery.php.
| ilUserQuery::getUdfFilter | ( | ) |
Get udf filter.
Definition at line 88 of file class.ilUserQuery.php.
References $udf_filter.
Referenced by query().
Here is the caller graph for this function:
|
static |
Get data for user administration list.
Definition at line 551 of file class.ilUserQuery.php.
Referenced by ilAssignedUsersTableGUI\getItems(), ilUserLPTableGUI\getItems(), ilCourseParticipantsTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilLearningSequenceParticipantsTableGUI\parse(), ilSubscriberTableGUI\readSubscriberData(), and ilWaitingListTableGUI\readUserData().
Here is the caller graph for this function:| ilUserQuery::query | ( | ) |
Query usr_data.
Definition at line 237 of file class.ilUserQuery.php.
References $DIC, Vendor\Package\$f, $id, $ilDB, $limit, $offset, $query, ilDateTime\_before(), ilUserDefinedFields\_getInstance(), ilObject\_lookupType(), ANONYMOUS_USER_ID, getUdfFilter(), IL_CAL_DATETIME, IL_CAL_DAY, IL_CAL_UNIX, ILIAS\Repository\int(), UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Here is the call graph for this function:| ilUserQuery::setAccessFilter | ( | bool | $a_access | ) |
set filter for user that are limited but has access
Definition at line 219 of file class.ilUserQuery.php.
| ilUserQuery::setActionFilter | ( | string | $a_activation | ) |
Set activation filter 'active' or 'inactive' or empty.
Definition at line 134 of file class.ilUserQuery.php.
| ilUserQuery::setAdditionalFields | ( | array | $a_add | ) |
Set additional fields (columns in usr_data or 'online_time')
Definition at line 195 of file class.ilUserQuery.php.
| ilUserQuery::setAuthenticationFilter | ( | string | $a_authentication | ) |
Set authentication filter.
| string | $a_authentication | 'default', 'local' or 'lti' |
Definition at line 228 of file class.ilUserQuery.php.
| ilUserQuery::setCourseGroupFilter | ( | int | $a_cg_id | ) |
Set course / group filter object_id of course or group.
Definition at line 169 of file class.ilUserQuery.php.
| ilUserQuery::setFirstLetterLastname | ( | string | $a_fll | ) |
set first letter lastname filter
Definition at line 211 of file class.ilUserQuery.php.
| ilUserQuery::setLastLogin | ( | ilDateTime | $dt = null | ) |
Set last login filter.
Definition at line 142 of file class.ilUserQuery.php.
| ilUserQuery::setLimit | ( | int | $a_limit | ) |
Definition at line 117 of file class.ilUserQuery.php.
| ilUserQuery::setLimitedAccessFilter | ( | bool | $a_status | ) |
Enable limited access filter.
Definition at line 150 of file class.ilUserQuery.php.
| ilUserQuery::setNoCourseFilter | ( | bool | $a_no_course | ) |
Definition at line 155 of file class.ilUserQuery.php.
| ilUserQuery::setNoGroupFilter | ( | bool | $a_no_group | ) |
Definition at line 160 of file class.ilUserQuery.php.
| ilUserQuery::setOffset | ( | int | $a_offset | ) |
Definition at line 112 of file class.ilUserQuery.php.
| ilUserQuery::setOrderDirection | ( | string | $a_dir | ) |
Set order direction 'asc' or 'desc' Default is 'asc'.
Definition at line 107 of file class.ilUserQuery.php.
| ilUserQuery::setOrderField | ( | string | $a_order | ) |
Set order field (column in usr_data) Default order is 'login'.
Definition at line 97 of file class.ilUserQuery.php.
| ilUserQuery::setRoleFilter | ( | int | $a_role_id | ) |
Set role filter obj_id of role.
Definition at line 178 of file class.ilUserQuery.php.
| ilUserQuery::setTextFilter | ( | string | $a_filter | ) |
Text (like) filter in login, firstname, lastname or email.
Definition at line 125 of file class.ilUserQuery.php.
| ilUserQuery::setUdfFilter | ( | array | $a_val | ) |
Set udf filter.
| array | $a_val | udf filter array |
Definition at line 70 of file class.ilUserQuery.php.
References ilUserDefinedFields\_getInstance().
Here is the call graph for this function:| ilUserQuery::setUserFilter | ( | array | $a_filter | ) |
Array with user ids to query against.
Definition at line 203 of file class.ilUserQuery.php.
| ilUserQuery::setUserFolder | ( | ?array | $a_fold_id | ) |
Set user folder filter reference id of user folder or category (local user administration)
Definition at line 187 of file class.ilUserQuery.php.
|
private |
Definition at line 33 of file class.ilUserQuery.php.
|
private |
Definition at line 41 of file class.ilUserQuery.php.
|
private |
Definition at line 45 of file class.ilUserQuery.php.
|
private |
Definition at line 38 of file class.ilUserQuery.php.
|
private |
Definition at line 48 of file class.ilUserQuery.php.
|
private |
Definition at line 43 of file class.ilUserQuery.php.
|
private |
Definition at line 44 of file class.ilUserQuery.php.
|
private |
Definition at line 34 of file class.ilUserQuery.php.
|
private |
Definition at line 31 of file class.ilUserQuery.php.
Referenced by query().
|
private |
Definition at line 35 of file class.ilUserQuery.php.
|
private |
Definition at line 36 of file class.ilUserQuery.php.
|
private |
Definition at line 37 of file class.ilUserQuery.php.
|
private |
Definition at line 30 of file class.ilUserQuery.php.
Referenced by query().
|
private |
Definition at line 29 of file class.ilUserQuery.php.
|
private |
Definition at line 28 of file class.ilUserQuery.php.
|
private |
Definition at line 39 of file class.ilUserQuery.php.
|
private |
Definition at line 32 of file class.ilUserQuery.php.
|
protected |
Definition at line 46 of file class.ilUserQuery.php.
Referenced by getUdfFilter().
|
private |
Definition at line 40 of file class.ilUserQuery.php.
|
private |
Definition at line 42 of file class.ilUserQuery.php.
| const ilUserQuery::DEFAULT_ORDER_FIELD = 'login' |
Definition at line 26 of file class.ilUserQuery.php.