ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjRemoteGroupListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
37 public function __construct()
38 {
40 }
41
47 public function init(): void
48 {
49 $this->copy_enabled = false;
50 $this->static_link_enabled = true;
51 $this->delete_enabled = true;
52 $this->cut_enabled = true;
53 $this->subscribe_enabled = true;
54 $this->link_enabled = true;
55 $this->info_screen_enabled = true;
56 $this->type = 'rgrp';
57 $this->gui_class_name = 'ilobjremotegroupgui';
58
59 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
60 if ($this->substitutions->isActive()) {
61 $this->substitutions_enabled = true;
62 }
63
64 // general commands array
65 $this->commands = ilObjRemoteGroupAccess::_getCommands();
66 }
67
68
76 public function getProperties(): array
77 {
78 if ($org = $this->_lookupOrganization(ilObjRemoteGroup::DB_TABLE_NAME, $this->obj_id)) {
79 $this->addCustomProperty($this->lng->txt('organization'), $org, false, true);
80 }
81 if (!ilObjRemoteGroup::_lookupOnline($this->obj_id)) {
82 $this->addCustomProperty($this->lng->txt("status"), $this->lng->txt("offline"), true, true);
83 }
84
85 return array();
86 }
87
95 public function getCommandFrame(string $cmd): string
96 {
97 switch ($cmd) {
98 case 'show':
99 if (ilECSExportManager::getInstance()->_isRemote(
100 ilECSImportManager::getInstance()->lookupServerId($this->obj_id),
101 (int) ilECSImportManager::getInstance()->_lookupEContentId($this->obj_id)
102 )) {
103 return '_blank';
104 }
105
106 // no break
107 default:
108 return parent::getCommandFrame($cmd);
109 }
110 }
111} // END class.ilObjRemoteGroupListGUI
static _getInstanceByObjectType(string $a_type)
static getInstance()
Get the singelton instance of this ilECSExportManager.
static getInstance()
Get the singleton instance of this ilECSImportManager.
getProperties()
get properties (offline)
getCommandFrame(string $cmd)
get command frame
static _lookupOnline($a_obj_id)
Lookup online.
addCustomProperty(string $property='', string $value='', bool $alert=false, bool $newline=false)
_lookupOrganization(string $table, int $a_obj_id)
lookup organization
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc