ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 25 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 27 of file Config.php.

30  {
31  }

Member Function Documentation

◆ allowEditing()

ILIAS\LegalDocuments\Config::allowEditing ( )

Definition at line 38 of file Config.php.

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

◆ editable()

ILIAS\LegalDocuments\Config::editable ( )

Definition at line 33 of file Config.php.

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

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

◆ legalDocuments()

ILIAS\LegalDocuments\Config::legalDocuments ( )

Definition at line 43 of file Config.php.

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

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

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