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"');
126 $part->getImportType(),
127 'import_type['.$this->getServer()->getServerId().
']['.$a_set[
'mid'].
']',
136 $this->tpl->setVariable(
'IMPORT_SEL', $sel);
138 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
140 $list->setItemLinkClass(
'small');
141 $list->setSelectionHeaderClass(
'small');
142 $list->setId(
'actl_'.$a_set[
'server_id'].
'_'.$a_set[
'mid']);
143 $list->setListTitle($this->lng->txt(
'actions'));
145 switch($part->getImportType())
156 $this->lng->txt(
'ecs_crs_alloc_set'),
158 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'cStart')
160 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
169 $this->lng->txt(
'ecs_dir_alloc_set'),
171 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'dStart')
174 $this->lng->txt(
'ecs_crs_alloc_set'),
176 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'cStart')
178 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
194 public function parse($a_participants)
196 foreach($a_participants as $participant)
198 $tmp_arr[
'mid'] = $participant->getMID();
199 $tmp_arr[
'participants'] = $participant->getParticipantName();
200 $tmp_arr[
'description'] = $participant->getDescription();
201 $tmp_arr[
'email'] = $participant->getEmail();
202 $tmp_arr[
'dns'] = $participant->getDNS();
206 $tmp_arr[
'abr'] = $participant->getOrganisation()->getAbbreviation();
207 $tmp_arr[
'org'] = $participant->getOrganisation()->getName();
212 $this->
setData($def ? $def : array());