ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilMDSettings Class Reference
+ Collaboration diagram for ilMDSettings:

Public Member Functions

 isCopyrightSelectionActive ()
 
 activateCopyrightSelection (bool $a_status)
 
 save ()
 

Static Public Member Functions

static _getInstance ()
 

Protected Attributes

ilSetting $settings
 

Static Protected Attributes

static self $instance = null
 

Private Member Functions

 __construct ()
 
 read ()
 

Private Attributes

bool $copyright_selection_active = false
 

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 24 of file class.ilMDSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilMDSettings::__construct ( )
private

Definition at line 31 of file class.ilMDSettings.php.

References read().

32  {
33  $this->read();
34  }
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

◆ activateCopyrightSelection()

ilMDSettings::activateCopyrightSelection ( bool  $a_status)

Definition at line 49 of file class.ilMDSettings.php.

49  : void
50  {
51  $this->copyright_selection_active = $a_status;
52  }

◆ isCopyrightSelectionActive()

ilMDSettings::isCopyrightSelectionActive ( )

Definition at line 44 of file class.ilMDSettings.php.

References $copyright_selection_active.

Referenced by save().

44  : bool
45  {
47  }
bool $copyright_selection_active
+ Here is the caller graph for this function:

◆ read()

ilMDSettings::read ( )
private

Definition at line 59 of file class.ilMDSettings.php.

References ILIAS\Repository\settings().

Referenced by __construct().

59  : void
60  {
61  $this->settings = new ilSetting('md_settings');
62 
63  $this->copyright_selection_active = (bool) $this->settings->get('copyright_selection_active', '0');
64  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilMDSettings::save ( )

Definition at line 54 of file class.ilMDSettings.php.

References isCopyrightSelectionActive(), and ILIAS\Repository\settings().

54  : void
55  {
56  $this->settings->set('copyright_selection_active', (string) $this->isCopyrightSelectionActive());
57  }
+ Here is the call graph for this function:

Field Documentation

◆ $copyright_selection_active

bool ilMDSettings::$copyright_selection_active = false
private

Definition at line 29 of file class.ilMDSettings.php.

Referenced by isCopyrightSelectionActive().

◆ $instance

self ilMDSettings::$instance = null
staticprotected

Definition at line 26 of file class.ilMDSettings.php.

◆ $settings

ilSetting ilMDSettings::$settings
protected

Definition at line 28 of file class.ilMDSettings.php.


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