ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMDSettings Class Reference
+ Collaboration diagram for ilMDSettings:

Public Member Functions

 isCopyrightSelectionActive ()
 
 activateCopyrightSelection (bool $a_status)
 
 setDelimiter (string $a_val)
 
 getDelimiter ()
 
 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
 
string $delimiter = ''
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilMDSettings::__construct ( )
private

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

References read().

41  {
42  $this->read();
43  }
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilMDSettings::_getInstance ( )
static

◆ activateCopyrightSelection()

ilMDSettings::activateCopyrightSelection ( bool  $a_status)

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

58  : void
59  {
60  $this->copyright_selection_active = $a_status;
61  }

◆ getDelimiter()

ilMDSettings::getDelimiter ( )

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

References $delimiter.

Referenced by save().

68  : string
69  {
70  if (trim($this->delimiter) === '') {
71  return ",";
72  }
73  return $this->delimiter;
74  }
+ Here is the caller graph for this function:

◆ isCopyrightSelectionActive()

ilMDSettings::isCopyrightSelectionActive ( )

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

References $copyright_selection_active.

Referenced by ilMDEditorGUI\getChangeCopyrightModal(), and save().

53  : bool
54  {
56  }
bool $copyright_selection_active
+ Here is the caller graph for this function:

◆ read()

ilMDSettings::read ( )
private

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

References ILIAS\Repository\settings().

Referenced by __construct().

82  : void
83  {
84  $this->settings = new ilSetting('md_settings');
85 
86  $this->copyright_selection_active = (bool) $this->settings->get('copyright_selection_active', '0');
87  $this->delimiter = (string) $this->settings->get('delimiter', ",");
88  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilMDSettings::save ( )

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

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

76  : void
77  {
78  $this->settings->set('copyright_selection_active', (string) $this->isCopyrightSelectionActive());
79  $this->settings->set('delimiter', $this->getDelimiter());
80  }
+ Here is the call graph for this function:

◆ setDelimiter()

ilMDSettings::setDelimiter ( string  $a_val)

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

63  : void
64  {
65  $this->delimiter = $a_val;
66  }

Field Documentation

◆ $copyright_selection_active

bool ilMDSettings::$copyright_selection_active = false
private

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

Referenced by isCopyrightSelectionActive().

◆ $delimiter

string ilMDSettings::$delimiter = ''
private

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

Referenced by getDelimiter().

◆ $instance

self ilMDSettings::$instance = null
staticprotected

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

◆ $settings

ilSetting ilMDSettings::$settings
protected

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


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