ILIAS
release_8 Revision v8.19
|
Base class for attendance lists. More...
Public Member Functions | |
__construct (object $a_parent_gui, ilObject $a_parent_obj, ?ilParticipants $a_participants_object=null, ?ilWaitingList $a_waiting_list=null) | |
addPreset (string $a_id, string $a_caption, bool $a_selected=false) | |
Add user field. More... | |
addBlank (string $a_caption) | |
Add blank column preset. More... | |
setTitle (string $a_title, ?string $a_description=null) | |
Set titles. More... | |
addUserFilter (string $a_id, string $a_caption, bool $a_checked=false) | |
Add user filter. More... | |
getNonMemberUserData (array &$a_res) | |
Get user data for subscribers and waiting list. More... | |
setBlankColumns (array $a_values) | |
Add blank columns. More... | |
setCallback (callable $a_callback) | |
Set participant detail callback. More... | |
setId (string $a_value) | |
initForm (string $a_cmd="") | |
Init form. More... | |
initFromForm () | |
Set list attributes from post values. More... | |
initFromSettings () | |
Directly set list attributes from default settings for print view. More... | |
getFullscreenHTML () | |
render list in fullscreen mode More... | |
getHTML () | |
render attendance list More... | |
Protected Member Functions | |
readOrderedExportableFields () | |
read object export fields More... | |
addRole (int $a_id, string $a_caption, string $a_type) | |
Add role. More... | |
setRoleSelection (array $a_role_ids) | |
Protected Attributes | |
ilLogger | $logger |
ilLanguage | $lng |
ilCtrlInterface | $ctrl |
ilGlobalTemplateInterface | $tpl |
object | $parent_gui |
ilObject | $parent_obj |
ilParticipants | $participants |
ilWaitingList | $waiting_list |
$callback | |
array | $presets = [] |
array | $role_data = [] |
array | $roles = [] |
bool | $has_local_role = false |
array | $blank_columns = [] |
string | $title = '' |
string | $description = '' |
array | $pre_blanks = [] |
string | $id = '' |
bool | $include_waiting_list = false |
bool | $include_subscribers = false |
array | $user_filters = [] |
Base class for attendance lists.
Definition at line 26 of file class.ilAttendanceList.php.
ilAttendanceList::__construct | ( | object | $a_parent_gui, |
ilObject | $a_parent_obj, | ||
?ilParticipants | $a_participants_object = null , |
||
?ilWaitingList | $a_waiting_list = null |
||
) |
Definition at line 53 of file class.ilAttendanceList.php.
References $DIC, ilObject\_lookupTitle(), addRole(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), and readOrderedExportableFields().
ilAttendanceList::addBlank | ( | string | $a_caption | ) |
Add blank column preset.
Definition at line 165 of file class.ilAttendanceList.php.
ilAttendanceList::addPreset | ( | string | $a_id, |
string | $a_caption, | ||
bool | $a_selected = false |
||
) |
Add user field.
Definition at line 157 of file class.ilAttendanceList.php.
Referenced by initFromForm(), and initFromSettings().
|
protected |
Add role.
Definition at line 182 of file class.ilAttendanceList.php.
Referenced by __construct().
ilAttendanceList::addUserFilter | ( | string | $a_id, |
string | $a_caption, | ||
bool | $a_checked = false |
||
) |
Add user filter.
Definition at line 195 of file class.ilAttendanceList.php.
ilAttendanceList::getFullscreenHTML | ( | ) |
render list in fullscreen mode
Definition at line 542 of file class.ilAttendanceList.php.
References getHTML().
ilAttendanceList::getHTML | ( | ) |
render attendance list
Definition at line 551 of file class.ilAttendanceList.php.
References $name, ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), ilUtil\_sortIds(), ilDatePresentation\formatDate(), ilGlobalTemplateInterface\get(), IL_CAL_UNIX, ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), ilDatePresentation\setUseRelativeDates(), ilGlobalTemplateInterface\setVariable(), and ilGlobalTemplateInterface\touchBlock().
Referenced by getFullscreenHTML().
ilAttendanceList::getNonMemberUserData | ( | array & | $a_res | ) |
Get user data for subscribers and waiting list.
Definition at line 203 of file class.ilAttendanceList.php.
References ilUserDefinedFields\_getInstance(), ilCourseUserData\_getValuesByObjId(), ilObjUser\_readUsersProfileData(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\lng().
ilAttendanceList::initForm | ( | string | $a_cmd = "" | ) |
Init form.
Definition at line 284 of file class.ilAttendanceList.php.
References $id, ILIAS\LTI\ToolProvider\$settings, ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by initFromForm().
ilAttendanceList::initFromForm | ( | ) |
Set list attributes from post values.
Definition at line 389 of file class.ilAttendanceList.php.
References $id, ilObject\_lookupTitle(), addPreset(), initForm(), setBlankColumns(), setRoleSelection(), and setTitle().
ilAttendanceList::initFromSettings | ( | ) |
Directly set list attributes from default settings for print view.
Definition at line 455 of file class.ilAttendanceList.php.
References $description, $id, $pre_blanks, ILIAS\LTI\ToolProvider\$settings, $title, ilObject\_lookupTitle(), addPreset(), setBlankColumns(), setRoleSelection(), and setTitle().
|
protected |
read object export fields
Definition at line 115 of file class.ilAttendanceList.php.
References $GLOBALS, ilCourseDefinedFieldDefinition\_getFields(), ilUserDefinedFields\_getInstance(), and ilExportFieldsInfo\_getInstanceByType().
Referenced by __construct().
ilAttendanceList::setBlankColumns | ( | array | $a_values | ) |
Add blank columns.
Definition at line 253 of file class.ilAttendanceList.php.
Referenced by initFromForm(), and initFromSettings().
ilAttendanceList::setCallback | ( | callable | $a_callback | ) |
Set participant detail callback.
Definition at line 271 of file class.ilAttendanceList.php.
ilAttendanceList::setId | ( | string | $a_value | ) |
Definition at line 276 of file class.ilAttendanceList.php.
|
protected |
Definition at line 187 of file class.ilAttendanceList.php.
Referenced by initFromForm(), and initFromSettings().
ilAttendanceList::setTitle | ( | string | $a_title, |
?string | $a_description = null |
||
) |
Set titles.
Definition at line 173 of file class.ilAttendanceList.php.
Referenced by initFromForm(), and initFromSettings().
|
protected |
Definition at line 44 of file class.ilAttendanceList.php.
|
protected |
Definition at line 39 of file class.ilAttendanceList.php.
|
protected |
Definition at line 30 of file class.ilAttendanceList.php.
|
protected |
Definition at line 46 of file class.ilAttendanceList.php.
Referenced by initFromSettings().
|
protected |
Definition at line 43 of file class.ilAttendanceList.php.
|
protected |
Definition at line 48 of file class.ilAttendanceList.php.
Referenced by initForm(), initFromForm(), and initFromSettings().
|
protected |
Definition at line 50 of file class.ilAttendanceList.php.
|
protected |
Definition at line 49 of file class.ilAttendanceList.php.
|
protected |
Definition at line 29 of file class.ilAttendanceList.php.
|
protected |
Definition at line 28 of file class.ilAttendanceList.php.
|
protected |
Definition at line 32 of file class.ilAttendanceList.php.
|
protected |
Definition at line 33 of file class.ilAttendanceList.php.
|
protected |
Definition at line 34 of file class.ilAttendanceList.php.
|
protected |
Definition at line 47 of file class.ilAttendanceList.php.
Referenced by initFromSettings().
|
protected |
Definition at line 40 of file class.ilAttendanceList.php.
|
protected |
Definition at line 41 of file class.ilAttendanceList.php.
|
protected |
Definition at line 42 of file class.ilAttendanceList.php.
|
protected |
Definition at line 45 of file class.ilAttendanceList.php.
Referenced by initFromSettings().
|
protected |
Definition at line 31 of file class.ilAttendanceList.php.
|
protected |
Definition at line 51 of file class.ilAttendanceList.php.
|
protected |
Definition at line 35 of file class.ilAttendanceList.php.