ILIAS  release_8 Revision v8.24
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$ @ilCtrl_Calls

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.

41 {
42 $this->read();
43 }

References read().

+ 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.

68 : string
69 {
70 if (trim($this->delimiter) === '') {
71 return ",";
72 }
73 return $this->delimiter;
74 }

References $delimiter.

Referenced by save().

+ Here is the caller graph for this function:

◆ isCopyrightSelectionActive()

ilMDSettings::isCopyrightSelectionActive ( )

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

53 : bool
54 {
56 }
bool $copyright_selection_active

References $copyright_selection_active.

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

+ Here is the caller graph for this function:

◆ read()

ilMDSettings::read ( )
private

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

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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ILIAS\Repository\settings().

Referenced by __construct().

+ 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.

76 : void
77 {
78 $this->settings->set('copyright_selection_active', (string) $this->isCopyrightSelectionActive());
79 $this->settings->set('delimiter', $this->getDelimiter());
80 }

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

+ 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.

Referenced by _getInstance().

◆ $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: