37 $this->ctrl =
$GLOBALS[
"DIC"]->ctrl();
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 $this->ctrl->setParameterByClass(ilLearningProgressGUI::class,
'obj_id', $set[
"user_id"]);
130 $selection->addItem(
$lng->txt(
"show_learning_progress"),
"show_learning_progress", $this->ctrl->getLinkTargetByClass(array(
131 ilAdministrationGUI::class,
132 ilObjOrgUnitGUI::class,
133 ilLearningProgressGUI::class,
136 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
139 $this->tpl->setVariable(
"ACTIONS", $selection->getHTML());
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static _enabledLearningProgress()
check wether learing progress is enabled or not
static _enabledUserRelatedData()
check wether user related tracking is enabled or not
Class ilOrgUnitUserAssignmentTableGUI.
__construct(BaseCommands $parent_obj, $parent_cmd, ilOrgUnitPosition $position)
ilOrgUnitUserAssignmentTableGUI constructor.
setRowForUser(&$set, $user_id)
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setShowTemplates($a_value)
Toggle templates.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.