ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilResourceStorageInfoGUI.php
Go to the documentation of this file.
1<?php
2
22
28{
30 protected Services $storage;
33 protected bool $is_storage = true;
34
40 {
41 global $DIC;
42 $this->storage = $DIC->resourceStorage();
47 $this->is_storage = false;
48 } else {
49 $this->is_storage = true;
50 $this->identification = $identification;
51 $this->resource = $this->storage->manage()->getResource($this->identification);
52 }
53
54 $this->language = $DIC->language();
55 $this->language->loadLanguageModule('irss');
56 }
57
58 public function append(ilInfoScreenGUI $info): void
59 {
60 if ($this->is_storage) {
61 $info->addSection($this->language->txt("storage_info"));
62 $info->addProperty($this->language->txt("resource_id"), $this->identification->serialize());
63 $info->addProperty($this->language->txt("storage_id"), $this->resource->getStorageID());
64 $info->addProperty($this->language->txt("max_revision"), $this->resource->getMaxRevision());
65 $info->addProperty($this->language->txt("stakeholders"), count($this->resource->getStakeholders()));
66 }
67 }
68}
Class ilInfoScreenGUI.
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
language handling
Class ilResourceStorageInfoGUI.
$info
Definition: entry_point.php:21
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26