24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php');
49 public function __construct($a_parent_obj,$a_parent_cmd =
'',$cid = 0)
58 $this->
addColumn($this->lng->txt(
'ecs_participants'),
'participants',
"50%");
59 $this->
addColumn($this->lng->txt(
'ecs_participants_infos'),
'infos',
"48%");
60 $this->
addColumn($this->lng->txt(
'ecs_active_header'),
'active',
"2%");
62 $this->
setRowTemplate(
"tpl.participant_row.html",
"Services/WebServices/ECS");
78 $this->tpl->setVariable(
'VAL_ID',$a_set[
'mid']);
79 $this->tpl->setVariable(
'VAL_CHECKED',$a_set[
'checked'] ?
'checked="checked"' :
'');
80 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'participants']);
81 $this->tpl->setVariable(
'VAL_DESC',$a_set[
'description']);
82 $this->tpl->setVariable(
'VAL_EMAIL',$a_set[
'email']);
83 $this->tpl->setVariable(
'VAL_DNS',$a_set[
'dns']);
84 $this->tpl->setVariable(
'VAL_ABR',$a_set[
'abr']);
85 $this->tpl->setVariable(
'TXT_EMAIL',$this->lng->txt(
'ecs_email'));
86 $this->tpl->setVariable(
'TXT_DNS',$this->lng->txt(
'ecs_dns'));
87 $this->tpl->setVariable(
'TXT_ABR',$this->lng->txt(
'ecs_abr'));
88 $this->tpl->setVariable(
'TXT_ID',$this->lng->txt(
'ecs_unique_id'));
95 $this->tpl->setVariable(
'TXT_OK',$this->lng->txt(
'ecs_active'));
100 $this->tpl->setVariable(
'TXT_OK',$this->lng->txt(
'ecs_inactive'));
111 public function parse($a_participants)
113 foreach($a_participants as $participant)
115 $tmp_arr[
'checked'] = $this->part_settings->isEnabled($participant->getMID());
116 $tmp_arr[
'mid'] = $participant->getMID();
117 $tmp_arr[
'participants'] = $participant->getParticipantName();
118 $tmp_arr[
'description'] = $participant->getDescription();
119 $tmp_arr[
'email'] = $participant->getEmail();
120 $tmp_arr[
'dns'] = $participant->getDNS();
121 $tmp_arr[
'abr'] = $participant->getAbbreviation();
125 $this->
setData($def ? $def : array());