ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMDSettings Class Reference
+ Collaboration diagram for ilMDSettings:

Public Member Functions

 isCopyrightSelectionActive ()
 is copyright selection active
 activateCopyrightSelection ($a_status)
 enable copyright selection
 save ()
 save

Static Public Member Functions

static _getInstance ()
 get instance

Static Public Attributes

static $instance = null

Private Member Functions

 __construct ()
 Constructor.
 read ()
 read

Private Attributes

 $settings
 $copyright_selection_active = false

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

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

Constructor & Destructor Documentation

ilMDSettings::__construct ( )
private

Constructor.

private

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

References read().

{
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

static ilMDSettings::_getInstance ( )
static

get instance

public

Parameters

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

References $instance.

Referenced by ilMDCopyrightSelectionGUI\__construct(), ilMDUtils\_parseCopyright(), and ilObjMDSettingsGUI\initMDSettings().

{
if(self::$instance)
{
}
return self::$instance = new ilMDSettings();
}

+ Here is the caller graph for this function:

ilMDSettings::activateCopyrightSelection (   $a_status)

enable copyright selection

public

Parameters
boolstatus

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

{
$this->copyright_selection_active = $a_status;
}
ilMDSettings::isCopyrightSelectionActive ( )

is copyright selection active

public

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

Referenced by save().

{
return $this->copyright_selection_active ? true : false;
}

+ Here is the caller graph for this function:

ilMDSettings::read ( )
private

read

private

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

Referenced by __construct().

{
$this->settings = new ilSetting('md_settings');
$this->copyright_selection_active = $this->settings->get('copyright_selection_active',0);
}

+ Here is the caller graph for this function:

ilMDSettings::save ( )

save

public

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

References isCopyrightSelectionActive().

{
$this->settings->set('copyright_selection_active',(int) $this->isCopyrightSelectionActive());
}

+ Here is the call graph for this function:

Field Documentation

ilMDSettings::$copyright_selection_active = false
private

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

ilMDSettings::$instance = null
static

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

Referenced by _getInstance().

ilMDSettings::$settings
private

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


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