24include_once(
'Services/Table/classes/class.ilTable2GUI.php');
 
   25include_once(
'Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php');
 
   61        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   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%');
 
   68        if ($ilAccess->checkAccess(
'write', 
'', $_REQUEST[
"ref_id"])) {
 
   73        $this->
setRowTemplate(
"tpl.participant_row.html", 
"Services/WebServices/ECS");
 
  101        $this->tpl->setVariable(
'S_ID', $this->
getServer()->getServerId());
 
  102        $this->tpl->setVariable(
'M_ID', $a_set[
'mid']);
 
  103        $this->tpl->setVariable(
'VAL_ID', $this->
getServer()->getServerId() . 
'_' . $a_set[
'mid']);
 
  104        $this->tpl->setVariable(
'VAL_ORG', (
string) $a_set[
'org']);
 
  105        $this->tpl->setVariable(
'VAL_CHECKED', $a_set[
'checked'] ? 
'checked="checked"' : 
'');
 
  106        $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'participants']);
 
  107        $this->tpl->setVariable(
'VAL_DESC', $a_set[
'description']);
 
  108        $this->tpl->setVariable(
'VAL_EMAIL', $a_set[
'email']);
 
  109        $this->tpl->setVariable(
'VAL_DNS', $a_set[
'dns']);
 
  110        $this->tpl->setVariable(
'VAL_ABR', $a_set[
'abr']);
 
  111        $this->tpl->setVariable(
'TXT_EMAIL', $this->lng->txt(
'ecs_email'));
 
  112        $this->tpl->setVariable(
'TXT_DNS', $this->lng->txt(
'ecs_dns'));
 
  113        $this->tpl->setVariable(
'TXT_ABR', $this->lng->txt(
'ecs_abr'));
 
  114        $this->tpl->setVariable(
'TXT_ID', $this->lng->txt(
'ecs_unique_id'));
 
  115        $this->tpl->setVariable(
'TXT_ORG', $this->lng->txt(
'organization'));
 
  117        include_once 
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
 
  121        if ($part->isExportEnabled()) {
 
  122            foreach ($part->getExportTypes() as $obj_type) {
 
  123                $this->tpl->setCurrentBlock(
'obj_erow');
 
  124                $this->tpl->setVariable(
'TXT_OBJ_EINFO', $this->lng->txt(
'objs_' . $obj_type));
 
  125                $this->tpl->parseCurrentBlock();
 
  128            $this->lng->loadLanguageModule(
'administration');
 
  129            $this->tpl->setVariable(
'TXT_OBJ_EINFO', $this->lng->txt(
'disabled'));
 
  132        if ($part->isImportEnabled()) {
 
  133            foreach ($part->getImportTypes() as $obj_type) {
 
  134                $this->tpl->setCurrentBlock(
'obj_irow');
 
  135                $this->tpl->setVariable(
'TXT_OBJ_IINFO', $this->lng->txt(
'objs_' . $obj_type));
 
  136                $this->tpl->parseCurrentBlock();
 
  139            $this->lng->loadLanguageModule(
'administration');
 
  140            $this->tpl->setVariable(
'TXT_OBJ_IINFO', $this->lng->txt(
'disabled'));
 
  144            $part->getImportType(),
 
  145            'import_type[' . $this->getServer()->getServerId() . 
'][' . $a_set[
'mid'] . 
']',
 
  154        $this->tpl->setVariable(
'IMPORT_SEL', $sel);
 
  156        include_once 
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
  158        $list->setItemLinkClass(
'small');
 
  159        $list->setSelectionHeaderClass(
'small');
 
  160        $list->setId(
'actl_' . $a_set[
'server_id'] . 
'_' . $a_set[
'mid']);
 
  161        $list->setListTitle($this->lng->txt(
'actions'));
 
  166            $this->lng->txt(
'edit'),
 
  168            $ilCtrl->getLinkTargetByClass(
'ilecsparticipantsettingsgui', 
'settings')
 
  171        switch ($part->getImportType()) {
 
  181                    $this->lng->txt(
'ecs_crs_alloc_set'),
 
  183                    $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui', 
'cStart')
 
  193                    $this->lng->txt(
'ecs_dir_alloc_set'),
 
  195                    $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui', 
'dStart')
 
  198                    $this->lng->txt(
'ecs_crs_alloc_set'),
 
  200                    $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui', 
'cStart')
 
  205        if ($ilAccess->checkAccess(
'write', 
'', $_REQUEST[
"ref_id"])) {
 
  206            $this->tpl->setCurrentBlock(
"actions");
 
  207            $this->tpl->setVariable(
'ACTIONS', 
$list->getHTML());
 
  208            $this->tpl->parseCurrentBlock();
 
  219    public function parse($a_participants)
 
  221        foreach ($a_participants as $participant) {
 
  222            $tmp_arr[
'mid'] = $participant->getMID();
 
  223            $tmp_arr[
'participants'] = $participant->getParticipantName();
 
  224            $tmp_arr[
'description'] = $participant->getDescription();
 
  225            $tmp_arr[
'email'] = $participant->getEmail();
 
  226            $tmp_arr[
'dns'] = $participant->getDNS();
 
  229                $tmp_arr[
'abr'] = $participant->getOrganisation()->getAbbreviation();
 
  230                $tmp_arr[
'org'] = $participant->getOrganisation()->getName();
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
getServerId()
Get current server id.
getParentObject()
Get parent object.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
disable($a_module_name)
diesables particular modules of table
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
if(isset($_REQUEST['delete'])) $list