4 include_once
'Services/Table/classes/class.ilTable2GUI.php';
17 public function __construct($a_parent_obj, $a_data, $a_type, $a_cmd, $a_default_form_action)
23 $this->type = $a_type;
26 if($this->type ==
'show')
28 if($ilAccess->checkAccess(
'write',
'', $a_parent_obj->object->getRefId()))
31 if(is_array($a_data) && count($a_data))
35 $this->
enable(
'select_all');
40 $this->
addColumn($lng->txt(
'username'),
'login',
'20%');
41 $this->
addColumn($lng->txt(
'firstname'),
'firstname',
'15%');
42 $this->
addColumn($lng->txt(
'lastname'),
'username',
'15%');
43 $this->
addColumn($lng->txt(
'ilinc_coursemember_status'),
'ilinc_coursemember_status',
'20%');
44 $this->
addColumn($lng->txt(
'role'),
'role',
'20%');
45 $this->
addColumn($lng->txt(
'grp_options'),
'functions',
'10%');
47 $this->
setRowTemplate(
'tpl.icrs_members_row.html',
'Modules/ILinc');
49 else if($this->type ==
'change')
51 $this->
addColumn($lng->txt(
'username'),
'login',
'20%');
52 $this->
addColumn($lng->txt(
'firstname'),
'firstname',
'15%');
53 $this->
addColumn($lng->txt(
'lastname'),
'username',
'15%');
54 $this->
addColumn($lng->txt(
'ilinc_coursemember_status'),
'ilinc_coursemember_status',
'20%');
55 $this->
addColumn($lng->txt(
'role'),
'role',
'30%');
58 if(is_array($a_data) && count($a_data))
63 $this->
setRowTemplate(
'tpl.icrs_members_change_row.html',
'Modules/ILinc');
74 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_default_form_action));