24include_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());
 
   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);
 
  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");
 
static _lookupLogin($a_user_id)
lookup login
static _lookupName($a_user_id)
lookup user name
enableRegistration($a_status)
enable registration
getParticipants()
get participants
__construct($a_parent_obj, $a_type=self::TYPE_ADMIN, $a_show_content=true)
Constructor.
isRegistrationEnabled()
is registration enabled
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
getParentObject()
Get parent object.
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...
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormName($a_formname)
Set Form name.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
disable($a_module_name)
diesables particular modules of table
enable($a_module_name)
enables particular modules of table