ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjRemoteGlossaryListGUI.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 = 'rglo';
57 $this->gui_class_name = 'ilobjremoteglossarygui';
58
59 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
60 if ($this->substitutions->isActive()) {
61 $this->substitutions_enabled = true;
62 }
63
64 // general commands array
66 }
67
68
69
77 public function getProperties(): array
78 {
79 if ($org = $this->_lookupOrganization(ilObjRemoteGlossary::DB_TABLE_NAME, $this->obj_id)) {
80 $this->addCustomProperty($this->lng->txt('organization'), $org, false, true);
81 }
82 if (!ilObjRemoteGlossary::_lookupOnline($this->obj_id)) {
83 $this->addCustomProperty($this->lng->txt("status"), $this->lng->txt("offline"), true, true);
84 }
85
86 return array();
87 }
88
96 public function getCommandFrame(string $cmd): string
97 {
98 switch ($cmd) {
99 case 'show':
100 if (ilECSExportManager::getInstance()->_isRemote(
101 ilECSImportManager::getInstance()->lookupServerId($this->obj_id),
102 (int) ilECSImportManager::getInstance()->_lookupEContentId($this->obj_id)
103 )) {
104 return '_blank';
105 }
106
107 // no break
108 default:
109 return parent::getCommandFrame($cmd);
110 }
111 }
112} // END class.ilObjRemoteGlossaryListGUI
static _getInstanceByObjectType(string $a_type)
static getInstance()
Get the singelton instance of this ilECSExportManager.
static getInstance()
Get the singleton instance of this ilECSImportManager.
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