24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
52 public function __construct($a_parent_obj,$a_type = self::TYPE_ADMIN, $a_show_content =
true)
57 $this->lng->loadLanguageModule(
'sess');
58 $this->lng->loadLanguageModule(
'crs');
59 $this->lng->loadLanguageModule(
'trac');
62 $this->role_type = $a_type;
65 $this->
setId(
'sess_'.$a_type.
'_'.$a_parent_obj->object->getId());
69 case self::TYPE_ADMIN:
72 case self::TYPE_TUTOR:
75 case self::TYPE_MEMBER:
93 $this->
enable(
'select_all');
121 $this->reg_enabled = $a_status;
144 $this->participants = $a_part;
170 $usr_data = $this->session_participants->getUser($participant_id);
172 $tmp_data[
'id'] = $participant_id;
175 $tmp_data[
'name'] = $name[
'lastname'];
176 $tmp_data[
'lastname'] = $name[
'lastname'];
177 $tmp_data[
'firstname'] = $name[
'firstname'];
179 $tmp_data[
'mark'] = $usr_data[
'mark'];
180 $tmp_data[
'comment'] = $usr_data[
'comment'];
181 $tmp_data[
'participated'] = $this->session_participants->hasParticipated($participant_id);
182 $tmp_data[
'registered'] = $this->session_participants->isRegistered($participant_id);
186 $this->
setData($part ? $part : array());
197 $this->tpl->setVariable(
'VAL_POSTNAME',$this->
getRoleType());
201 $this->tpl->setCurrentBlock(
'registered_col');
202 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
203 $this->tpl->setVariable(
'REG_CHECKED',$a_set[
'registered'] ?
'checked="checked"' :
'');
204 $this->tpl->parseCurrentBlock();
207 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
208 $this->tpl->setVariable(
'LASTNAME',$a_set[
'lastname']);
209 $this->tpl->setVariable(
'FIRSTNAME',$a_set[
'firstname']);
210 $this->tpl->setVariable(
'LOGIN',$a_set[
'login']);
211 $this->tpl->setVariable(
'MARK',$a_set[
'mark']);
212 $this->tpl->setVariable(
'COMMENT',$a_set[
'comment']);
213 $this->tpl->setVariable(
'PART_CHECKED',$a_set[
'participated'] ?
'checked="checked"' :
'');
227 #$this->setFormAction($this->ctrl->getFormAction($this->getParentObject(),'members'));
230 $this->
addColumn($this->lng->txt(
'name'),
'name',
'20%');
231 $this->
addColumn($this->lng->txt(
'login'),
'login',
'10%');
234 $this->
addColumn($this->lng->txt(
'event_tbl_registered'),
'registered');
236 $this->
addColumn($this->lng->txt(
'trac_mark'),
'mark');
237 $this->
addColumn($this->lng->txt(
'trac_comment'),
'comment');
238 $this->
addColumn($this->lng->txt(
'event_tbl_participated'),
'participated');
239 $this->
setRowTemplate(
"tpl.sess_members_row.html",
"Modules/Session");