24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php');
62 $this->
addColumn($this->lng->txt(
'ecs_participants'),
'participants',
"35%");
63 $this->
addColumn($this->lng->txt(
'ecs_participants_infos'),
'infos',
"35%");
64 $this->
addColumn($this->lng->txt(
'ecs_tbl_export'),
'export',
'5%');
65 $this->
addColumn($this->lng->txt(
'ecs_tbl_import'),
'import',
'5%');
66 $this->
addColumn($this->lng->txt(
'ecs_tbl_import_type'),
'type',
'10%');
69 $this->
setRowTemplate(
"tpl.participant_row.html",
"Services/WebServices/ECS");
97 $this->tpl->setVariable(
'S_ID', $this->
getServer()->getServerId());
98 $this->tpl->setVariable(
'M_ID', $a_set[
'mid']);
99 $this->tpl->setVariable(
'VAL_ID', $this->
getServer()->getServerId().
'_'.$a_set[
'mid']);
100 $this->tpl->setVariable(
'VAL_ORG', (
string) $a_set[
'org']);
101 $this->tpl->setVariable(
'VAL_CHECKED',$a_set[
'checked'] ?
'checked="checked"' :
'');
102 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'participants']);
103 $this->tpl->setVariable(
'VAL_DESC',$a_set[
'description']);
104 $this->tpl->setVariable(
'VAL_EMAIL',$a_set[
'email']);
105 $this->tpl->setVariable(
'VAL_DNS',$a_set[
'dns']);
106 $this->tpl->setVariable(
'VAL_ABR',$a_set[
'abr']);
107 $this->tpl->setVariable(
'TXT_EMAIL',$this->lng->txt(
'ecs_email'));
108 $this->tpl->setVariable(
'TXT_DNS',$this->lng->txt(
'ecs_dns'));
109 $this->tpl->setVariable(
'TXT_ABR',$this->lng->txt(
'ecs_abr'));
110 $this->tpl->setVariable(
'TXT_ID',$this->lng->txt(
'ecs_unique_id'));
111 $this->tpl->setVariable(
'TXT_ORG', $this->lng->txt(
'organization'));
113 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
115 if($part->isExportEnabled())
117 $this->tpl->setVariable(
'EXP_CHECKED',
'checked="checked"');
119 if($part->isImportEnabled())
121 $this->tpl->setVariable(
'IMP_CHECKED',
'checked="checked"');
125 $part->getImportType(),
126 'import_type['.$this->getServer()->getServerId().
']['.$a_set[
'mid'].
']',
135 $this->tpl->setVariable(
'IMPORT_SEL', $sel);
137 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
139 $list->setId(
'actl_'.$set[
'server_id'].
'_'.$a_set[
'mid']);
140 $list->setListTitle($this->lng->txt(
'actions'));
142 switch($part->getImportType())
151 $this->lng->txt(
'ecs_crs_alloc_set'),
153 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'dStart')
155 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
161 $this->lng->txt(
'ecs_crs_alloc_set'),
163 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'cStart')
166 $this->lng->txt(
'ecs_dir_alloc_set'),
168 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'dStart')
170 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
182 public function parse($a_participants)
184 foreach($a_participants as $participant)
186 $tmp_arr[
'mid'] = $participant->getMID();
187 $tmp_arr[
'participants'] = $participant->getParticipantName();
188 $tmp_arr[
'description'] = $participant->getDescription();
189 $tmp_arr[
'email'] = $participant->getEmail();
190 $tmp_arr[
'dns'] = $participant->getDNS();
194 $tmp_arr[
'abr'] = $participant->getOrganisation()->getAbbreviation();
195 $tmp_arr[
'org'] = $participant->getOrganisation()->getName();
200 $this->
setData($def ? $def : array());