ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMDSettings Class Reference
+ Inheritance diagram for ilMDSettings:
+ Collaboration diagram for ilMDSettings:

Public Member Functions

 isCopyrightSelectionActive ()
 
 activateCopyrightSelection (bool $status)
 
 isOAIPMHActive ()
 
 activateOAIPMH (bool $status)
 
 getOAIRepositoryName ()
 
 saveOAIRepositoryName (string $oai_repository_name)
 
 getOAIIdentifierPrefix ()
 
 saveOAIIdentifierPrefix (string $oai_identifier_prefix)
 
 getOAIContactMail ()
 
 saveOAIContactMail (string $oai_contact_mail)
 

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
 
bool $oai_pmh_active = false
 
string $oai_repository_name = ''
 
string $oai_identifier_prefix = ''
 
string $oai_contact_mail = ''
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilMDSettings::__construct ( )
private

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

References read().

38  {
39  $this->read();
40  }
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

◆ activateCopyrightSelection()

ilMDSettings::activateCopyrightSelection ( bool  $status)

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References ILIAS\Repository\settings().

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

◆ activateOAIPMH()

ilMDSettings::activateOAIPMH ( bool  $status)

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References ILIAS\Repository\settings().

66  : void
67  {
68  $this->oai_pmh_active = $status;
69  $this->settings->set('oai_pmh_active', (string) $status);
70  }
+ Here is the call graph for this function:

◆ getOAIContactMail()

ilMDSettings::getOAIContactMail ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_contact_mail.

94  : string
95  {
97  }

◆ getOAIIdentifierPrefix()

ilMDSettings::getOAIIdentifierPrefix ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_identifier_prefix.

83  : string
84  {
86  }
string $oai_identifier_prefix

◆ getOAIRepositoryName()

ilMDSettings::getOAIRepositoryName ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_repository_name.

72  : string
73  {
75  }
string $oai_repository_name

◆ isCopyrightSelectionActive()

ilMDSettings::isCopyrightSelectionActive ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $copyright_selection_active.

50  : bool
51  {
53  }
bool $copyright_selection_active

◆ isOAIPMHActive()

ilMDSettings::isOAIPMHActive ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_pmh_active.

61  : bool
62  {
63  return $this->oai_pmh_active;
64  }

◆ read()

ilMDSettings::read ( )
private

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

References ILIAS\Repository\settings().

Referenced by __construct().

105  : void
106  {
107  $this->settings = new ilSetting('md_settings');
108 
109  $this->copyright_selection_active = (bool) $this->settings->get('copyright_selection_active', '0');
110  $this->oai_pmh_active = (bool) $this->settings->get('oai_pmh_active', '0');
111  $this->oai_repository_name = (string) $this->settings->get('oai_repository_name', '');
112  $this->oai_identifier_prefix = (string) $this->settings->get('oai_identifier_prefix', '');
113  $this->oai_contact_mail = (string) $this->settings->get('oai_contact_mail', '');
114  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveOAIContactMail()

ilMDSettings::saveOAIContactMail ( string  $oai_contact_mail)

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_contact_mail, and ILIAS\Repository\settings().

99  : void
100  {
101  $this->oai_contact_mail = $oai_contact_mail;
102  $this->settings->set('oai_contact_mail', $oai_contact_mail);
103  }
+ Here is the call graph for this function:

◆ saveOAIIdentifierPrefix()

ilMDSettings::saveOAIIdentifierPrefix ( string  $oai_identifier_prefix)

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_identifier_prefix, and ILIAS\Repository\settings().

88  : void
89  {
90  $this->oai_identifier_prefix = $oai_identifier_prefix;
91  $this->settings->set('oai_identifier_prefix', $oai_identifier_prefix);
92  }
string $oai_identifier_prefix
+ Here is the call graph for this function:

◆ saveOAIRepositoryName()

ilMDSettings::saveOAIRepositoryName ( string  $oai_repository_name)

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

References $oai_repository_name, and ILIAS\Repository\settings().

77  : void
78  {
79  $this->oai_repository_name = $oai_repository_name;
80  $this->settings->set('oai_repository_name', $oai_repository_name);
81  }
string $oai_repository_name
+ Here is the call graph for this function:

Field Documentation

◆ $copyright_selection_active

bool ilMDSettings::$copyright_selection_active = false
private

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

Referenced by isCopyrightSelectionActive().

◆ $instance

self ilMDSettings::$instance = null
staticprotected

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

◆ $oai_contact_mail

string ilMDSettings::$oai_contact_mail = ''
private

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

Referenced by getOAIContactMail(), and saveOAIContactMail().

◆ $oai_identifier_prefix

string ilMDSettings::$oai_identifier_prefix = ''
private

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

Referenced by getOAIIdentifierPrefix(), and saveOAIIdentifierPrefix().

◆ $oai_pmh_active

bool ilMDSettings::$oai_pmh_active = false
private

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

Referenced by isOAIPMHActive().

◆ $oai_repository_name

string ilMDSettings::$oai_repository_name = ''
private

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

Referenced by getOAIRepositoryName(), and saveOAIRepositoryName().

◆ $settings

ilSetting ilMDSettings::$settings
protected

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


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