ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig Class Reference
+ Inheritance diagram for ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig:
+ Collaboration diagram for ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig:

Public Member Functions

 __construct (?StorableContainerResource $resource, string $title, bool $writeable, private string $start_file, private string $start_file_label)
 
 getConfiguration ()
 
 statusTextForPath (string $path)
 
 statusTextForPath (string $path)
 

Private Attributes

ILIAS components ResourceStorage Container View Configuration $view_config
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig::__construct ( ?StorableContainerResource  $resource,
string  $title,
bool  $writeable,
private string  $start_file,
private string  $start_file_label 
)

Definition at line 34 of file HTMLModuleViewConfig.php.

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 }

References ILIAS\components\ResourceStorage\Container\View\DATA_TABLE.

Member Function Documentation

◆ getConfiguration()

ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig::getConfiguration ( )

◆ statusTextForPath()

ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig::statusTextForPath ( string  $path)

Implements ILIAS\components\ResourceStorage\Container\View\PathStatusInfo.

Definition at line 57 of file HTMLModuleViewConfig.php.

57 : ?string
58 {
59 if ($path === $this->start_file) {
60 return $this->start_file_label;
61 }
62 return null;
63 }
$path
Definition: ltiservices.php:30

References $path.

Field Documentation

◆ $view_config

ILIAS components ResourceStorage Container View Configuration ILIAS\HTMLLearningModule\ContainerView\HTMLModuleViewConfig::$view_config
private

The documentation for this class was generated from the following file: