ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\Config Class Reference
+ Collaboration diagram for ILIAS\LegalDocuments\Config:

Public Member Functions

 __construct (private readonly Provide $provide, private readonly bool $editable=false)
 
 editable ()
 
 allowEditing ()
 
 legalDocuments ()
 

Detailed Description

Definition at line 23 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\Config::__construct ( private readonly Provide  $provide,
private readonly bool  $editable = false 
)

Definition at line 25 of file Config.php.

28 {
29 }

Member Function Documentation

◆ allowEditing()

ILIAS\LegalDocuments\Config::allowEditing ( )

Definition at line 36 of file Config.php.

36 : self
37 {
38 return new self($this->provide, true);
39 }

Referenced by ilObjDataProtectionGUI\__construct(), and ilObjTermsOfServiceGUI\__construct().

+ Here is the caller graph for this function:

◆ editable()

ILIAS\LegalDocuments\Config::editable ( )

Definition at line 31 of file Config.php.

31 : bool
32 {
33 return $this->editable;
34 }

Referenced by ILIAS\LegalDocuments\Config\legalDocuments().

+ Here is the caller graph for this function:

◆ legalDocuments()

ILIAS\LegalDocuments\Config::legalDocuments ( )

Definition at line 41 of file Config.php.

41 : Provide
42 {
43 if ($this->editable()) {
44 return $this->provide->allowEditing();
45 }
46 return $this->provide;
47 }

References ILIAS\LegalDocuments\Provide\allowEditing(), and ILIAS\LegalDocuments\Config\editable().

+ Here is the call graph for this function:

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