4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
48 $this->ctrl = $DIC->ctrl();
49 $this->access = $DIC->access();
54 $this->edit_permission = (bool)
$access->checkAccessOfUser(
$user->getId(),
"edit",
"", $a_parent_ref_id);
56 $this->mode = $a_mode;
57 $this->team = $a_team;
58 $this->read_only = (bool) $a_read_only;
59 $this->parent_ref_id = $a_parent_ref_id;
61 parent::__construct($a_parent_obj, $a_parent_cmd);
63 if (!$this->read_only) {
66 $this->
addColumn($this->lng->txt(
"name"),
"name");
70 $this->
setRowTemplate(
"tpl.exc_team_member_row.html",
"Modules/Exercise");
73 if (!$this->read_only) {
74 if ($this->mode == self::MODE_ADD) {
75 $this->
setTitle($this->lng->txt(
"exc_team_member_container_add"));
76 $this->
addMultiCommand(
"addTeamMemberContainerAction", $this->lng->txt(
"add"));
78 $this->
setTitle($this->lng->txt(
"exc_team_members"));
79 $this->
addMultiCommand(
"confirmRemoveTeamMember", $this->lng->txt(
"remove"));
91 if ($this->mode == self::MODE_ADD) {
92 $assigned = $this->team->getMembersOfAllTeams();
95 $this->member_ids = $this->team->getMembers();
98 include_once
"Services/User/classes/class.ilUserUtil.php";
101 foreach ($this->member_ids as
$id) {
102 if (!in_array($id, $assigned)) {
103 $data[] = array(
"id" => $id,
120 if (!$this->read_only) {
121 $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
123 $this->tpl->setVariable(
"TXT_NAME", $a_set[
"name"]);
126 if (!$ilAccess->checkAccessOfUser($a_set[
"id"],
"read",
"", $this->parent_ref_id) &&
127 is_array(
$info = $ilAccess->getInfo())) {
128 $this->tpl->setCurrentBlock(
'access_warning');
129 $this->tpl->setVariable(
'PARENT_ACCESS',
$info[0][
"text"]);
130 $this->tpl->parseCurrentBlock();
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
if(!array_key_exists('StateId', $_REQUEST)) $id
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.
List all team members of an assignment.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
getItems()
Get all completed tests.
fillRow($a_set)
Fill template row.