ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjRemoteCategoryListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
29{
36 public function __construct()
37 {
39 }
40
46 public function init(): void
47 {
48 $this->copy_enabled = false;
49 $this->static_link_enabled = true;
50 $this->delete_enabled = true;
51 $this->cut_enabled = true;
52 $this->subscribe_enabled = true;
53 $this->link_enabled = true;
54 $this->info_screen_enabled = true;
55 $this->type = 'rcat';
56 $this->gui_class_name = 'ilobjremotecategorygui';
57
58 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
59 if ($this->substitutions->isActive()) {
60 $this->substitutions_enabled = true;
61 }
62
63 // general commands array
65 }
66
67
68
76 public function getProperties(): array
77 {
78 if ($org = $this->_lookupOrganization(ilObjRemoteCategory::DB_TABLE_NAME, $this->obj_id)) {
79 $this->addCustomProperty($this->lng->txt('organization'), $org, false, true);
80 }
81
82 return array();
83 }
84
92 public function getCommandFrame(string $cmd): string
93 {
94 switch ($cmd) {
95 case 'show':
96 if (ilECSExportManager::getInstance()->_isRemote(
97 ilECSImportManager::getInstance()->lookupServerId($this->obj_id),
98 (int) ilECSImportManager::getInstance()->_lookupEContentId($this->obj_id)
99 )) {
100 return '_blank';
101 }
102
103 // no break
104 default:
105 return parent::getCommandFrame($cmd);
106 }
107 }
108} // END class.ilObjRemoteCategoryListGUI
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
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