24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
57 $this->lng->loadLanguageModule(
'sess');
58 $this->lng->loadLanguageModule(
'crs');
59 $this->lng->loadLanguageModule(
'trac');
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:
80 parent::__construct($a_parent_obj,
'members');
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);
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");
static _lookupLogin($a_user_id)
lookup login
static _lookupName($a_user_id)
lookup user name
enableRegistration($a_status)
enable registration
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
isRegistrationEnabled()
is registration enabled
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
getParticipants()
get participants
disable($a_module_name)
diesables particular modules of table
__construct($a_parent_obj, $a_type=self::TYPE_ADMIN, $a_show_content=true)
Constructor.
Create new PHPExcel object
obj_idprivate
setFormName($a_formname="")
Set Form name.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setParticipants($a_part)
set participants
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.