ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjRemoteFileListGUI.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 = 'rwik';
57 $this->gui_class_name = 'ilobjremotefilegui';
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 = ilObjRemoteFileAccess::_getCommands();
66 }
67
68
69
77 public function getProperties(): array
78 {
79 global $lng;
80
81 if ($org = $this->_lookupOrganization(ilObjRemoteFile::DB_TABLE_NAME, $this->obj_id)) {
82 $this->addCustomProperty($lng->txt('organization'), $org, false, true);
83 }
84
86 if ($version) {
87 $this->addCustomProperty($lng->txt('version'), $version, false, true);
88 }
89
90 return array();
91 }
92
100 public function getCommandFrame(string $cmd): string
101 {
102 switch ($cmd) {
103 case 'show':
104 if (ilECSExportManager::getInstance()->_isRemote(
105 ilECSImportManager::getInstance()->lookupServerId($this->obj_id),
106 (int) ilECSImportManager::getInstance()->_lookupEContentId($this->obj_id)
107 )) {
108 return '_blank';
109 }
110
111 // no break
112 default:
113 return parent::getCommandFrame($cmd);
114 }
115 }
116} // END class.ilObjRemoteFileListGUI
$version
Definition: plugin.php:24
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 _lookupVersionInfo($a_obj_id)
Get version info.
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