ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 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.

38 {
39 $this->read();
40 }

References read().

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

55 : void
56 {
57 $this->copyright_selection_active = $status;
58 $this->settings->set('copyright_selection_active', (string) $status);
59 }

References ILIAS\Repository\settings().

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

66 : void
67 {
68 $this->oai_pmh_active = $status;
69 $this->settings->set('oai_pmh_active', (string) $status);
70 }

References ILIAS\Repository\settings().

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

94 : string
95 {
97 }

References $oai_contact_mail.

◆ getOAIIdentifierPrefix()

ilMDSettings::getOAIIdentifierPrefix ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

83 : string
84 {
86 }
string $oai_identifier_prefix

References $oai_identifier_prefix.

◆ getOAIRepositoryName()

ilMDSettings::getOAIRepositoryName ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

72 : string
73 {
75 }
string $oai_repository_name

References $oai_repository_name.

◆ isCopyrightSelectionActive()

ilMDSettings::isCopyrightSelectionActive ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

50 : bool
51 {
53 }
bool $copyright_selection_active

References $copyright_selection_active.

◆ isOAIPMHActive()

ilMDSettings::isOAIPMHActive ( )

Implements ILIAS\MetaData\Settings\SettingsInterface.

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

61 : bool
62 {
64 }

References $oai_pmh_active.

◆ read()

ilMDSettings::read ( )
private

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

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 }
ILIAS Setting Class.

References ILIAS\Repository\settings().

Referenced by __construct().

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

99 : void
100 {
101 $this->oai_contact_mail = $oai_contact_mail;
102 $this->settings->set('oai_contact_mail', $oai_contact_mail);
103 }

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

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

88 : void
89 {
90 $this->oai_identifier_prefix = $oai_identifier_prefix;
91 $this->settings->set('oai_identifier_prefix', $oai_identifier_prefix);
92 }

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

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

77 : void
78 {
79 $this->oai_repository_name = $oai_repository_name;
80 $this->settings->set('oai_repository_name', $oai_repository_name);
81 }

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

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

Referenced by _getInstance().

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