4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
46 $this->edit_permission = (bool) $access->checkAccessOfUser($user->getId(),
"edit",
"", $a_parent_ref_id);
49 $this->mode = $a_mode;
50 $this->team = $a_team;
51 $this->read_only = (bool)$a_read_only;
52 $this->parent_ref_id = $a_parent_ref_id;
54 parent::__construct($a_parent_obj, $a_parent_cmd);
60 $this->
addColumn($this->lng->txt(
"name"),
"name");
64 $this->
setRowTemplate(
"tpl.exc_team_member_row.html",
"Modules/Exercise");
65 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
69 if($this->mode == self::MODE_ADD)
71 $this->
setTitle($this->lng->txt(
"exc_team_member_container_add"));
72 $this->
addMultiCommand(
"addTeamMemberContainerAction", $this->lng->txt(
"add"));
76 $this->
setTitle($this->lng->txt(
"exc_team_members"));
77 $this->
addMultiCommand(
"confirmRemoveTeamMember", $this->lng->txt(
"remove"));
89 if($this->mode == self::MODE_ADD)
91 $assigned = $this->team->getMembersOfAllTeams();
96 $this->member_ids = $this->team->getMembers();
99 include_once
"Services/User/classes/class.ilUserUtil.php";
102 foreach($this->member_ids as $id)
104 if(!in_array($id, $assigned))
123 if(!$this->read_only)
125 $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
127 $this->tpl->setVariable(
"TXT_NAME", $a_set[
"name"]);
130 if(!$ilAccess->checkAccessOfUser($a_set[
"id"],
"read",
"", $this->parent_ref_id) &&
131 is_array(
$info = $ilAccess->getInfo()))
133 $this->tpl->setCurrentBlock(
'access_warning');
134 $this->tpl->setVariable(
'PARENT_ACCESS',
$info[0][
"text"]);
135 $this->tpl->parseCurrentBlock();
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
Exercise assignment team.
__construct($a_parent_obj, $a_parent_cmd, $a_mode, $a_parent_ref_id, ilExAssignmentTeam $a_team, $a_read_only=false)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
List all team members of an assignment.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
getItems()
Get all completed tests.
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.
fillRow($a_set)
Fill template row.