ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
HTMLModuleViewConfig.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
21
26
31{
32 private \ILIAS\components\ResourceStorage\Container\View\Configuration $view_config;
33
34 public function __construct(
36 string $title,
37 bool $writeable,
38 private string $start_file,
39 private string $start_file_label
40 ) {
41 $this->view_config = (new \ILIAS\components\ResourceStorage\Container\View\Configuration(
42 $resource,
43 new \ilHTLMStakeholder(),
44 $title,
46 250,
47 $writeable,
48 $writeable
49 ))->withPathStatusInfo($this);
50 }
51
52 public function getConfiguration(): \ILIAS\components\ResourceStorage\Container\View\Configuration
53 {
54 return $this->view_config;
55 }
56
57 public function statusTextForPath(string $path): ?string
58 {
59 if ($path === $this->start_file) {
60 return $this->start_file_label;
61 }
62 return null;
63 }
64
65}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
__construct(?StorableContainerResource $resource, string $title, bool $writeable, private string $start_file, private string $start_file_label)
ILIAS components ResourceStorage Container View Configuration $view_config
$path
Definition: ltiservices.php:30
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Class ilChatroomConfigFileHandler \ILIAS\Chatroom\classes.