37 $this->ctrl =
$GLOBALS[
"DIC"]->ctrl();
44 $this->
setFormAction($this->ctrl->getFormAction($parent_obj));
60 $this->
addColumn($this->lng->txt(
"firstname"),
"first_name");
61 $this->
addColumn($this->lng->txt(
"lastname"),
"last_name");
62 $this->
addColumn($this->lng->txt(
"action"));
83 foreach ($user_ids as $user_id) {
100 $set[
"first_name"] = $user->getFirstname();
101 $set[
"last_name"] = $user->getLastname();
102 $set[
"user_object"] = $user;
103 $set[
"user_id"] = $user_id;
115 $ilAccess = $DIC[
'ilAccess'];
116 $this->tpl->setVariable(
"FIRST_NAME", $set[
"first_name"]);
117 $this->tpl->setVariable(
"LAST_NAME", $set[
"last_name"]);
120 $this->ctrl->setParameterByClass(ilOrgUnitUserAssignmentGUI::class,
'usr_id', $set[
"user_id"]);
121 $this->ctrl->setParameterByClass(ilOrgUnitUserAssignmentGUI::class,
'position_id', $this->
ilOrgUnitPosition->
getId());
123 $selection->setListTitle(
$lng->txt(
"Actions"));
124 $selection->setId(
"selection_list_user_lp_" . $set[
"user_id"]);
126 if ($ilAccess->checkAccess(
"view_learning_progress",
"",
$_GET[
"ref_id"])
129 $selection->addItem(
$lng->txt(
"show_learning_progress"),
"show_learning_progress", $this->ctrl->getLinkTargetByClass(
array(
130 ilAdministrationGUI::class,
131 ilObjOrgUnitGUI::class,
132 ilLearningProgressGUI::class,
135 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
138 $this->tpl->setVariable(
"ACTIONS", $selection->getHTML());
setShowTemplates($a_value)
Toggle templates.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowForUser(&$set, $user_id)
static _enabledUserRelatedData()
check wether user related tracking is enabled or not
static _enabledLearningProgress()
check wether learing progress is enabled or not
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(BaseCommands $parent_obj, $parent_cmd, ilOrgUnitPosition $position)
ilOrgUnitUserAssignmentTableGUI constructor.
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
Class ilOrgUnitUserAssignmentTableGUI.