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 | |
Definition at line 33 of file class.ilMDSettings.php.
| 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:| static ilMDSettings::_getInstance | ( | ) | [static] |
get instance
public
Definition at line 59 of file class.ilMDSettings.php.
Referenced by ilMDCopyrightSelectionGUI::__construct(), ilMDUtils::_parseCopyright(), and ilObjMDSettingsGUI::initMDSettings().
{
if(self::$instance)
{
return self::$instance;
}
return self::$instance = new ilMDSettings();
}
Here is the caller graph for this function:| ilMDSettings::activateCopyrightSelection | ( | $ | a_status | ) |
enable copyright selection
public
| bool | status |
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: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.
ilMDSettings::$settings [private] |
Definition at line 37 of file class.ilMDSettings.php.
1.7.1