ILIAS  release_8 Revision v8.24
class.ilObjRemoteFileListGUI.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
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 = 'rwik';
56 $this->gui_class_name = 'ilobjremotefilegui';
57
58 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
59 if ($this->substitutions->isActive()) {
60 $this->substitutions_enabled = true;
61 }
62
63 // general commands array
64 $this->commands = ilObjRemoteFileAccess::_getCommands();
65 }
66
67
68
76 public function getProperties(): array
77 {
78 global $lng;
79
80 if ($org = $this->_lookupOrganization(ilObjRemoteFile::DB_TABLE_NAME, $this->obj_id)) {
81 $this->addCustomProperty($lng->txt('organization'), $org, false, true);
82 }
83
85 if ($version) {
86 $this->addCustomProperty($lng->txt('version'), $version, false, true);
87 }
88
89 return array();
90 }
91
99 public function getCommandFrame(string $cmd): string
100 {
101 switch ($cmd) {
102 case 'show':
103 if (ilECSExportManager::getInstance()->_isRemote(
104 ilECSImportManager::getInstance()->lookupServerId($this->obj_id),
105 (int) ilECSImportManager::getInstance()->_lookupEContentId($this->obj_id)
106 )) {
107 return '_blank';
108 }
109
110 // no break
111 default:
112 return parent::getCommandFrame($cmd);
113 }
114 }
115} // 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