ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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  }

◆ editable()

ILIAS\LegalDocuments\Config::editable ( )

Definition at line 31 of file Config.php.

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

31  : bool
32  {
33  return $this->editable;
34  }
+ Here is the caller graph for this function:

◆ legalDocuments()

ILIAS\LegalDocuments\Config::legalDocuments ( )

Definition at line 41 of file Config.php.

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

41  : Provide
42  {
43  if ($this->editable()) {
44  return $this->provide->allowEditing();
45  }
46  return $this->provide;
47  }
+ Here is the call graph for this function:

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