ILIAS  Release_4_0_x_branch Revision 61816
 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
 setDelimiter ($a_val)
 Set delimiter (used in quick editing screen)
 getDelimiter ()
 Get delimiter.
 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(), ilMDEditorGUI\ilMDEditorGUI(), 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::getDelimiter ( )

Get delimiter.

Returns
string delimiter

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

Referenced by save().

{
if (trim($this->delimiter) == "")
{
return ",";
}
return $this->delimiter;
}

+ Here is the caller graph for this function:

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 133 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);
$this->delimiter = $this->settings->get('delimiter',",");
}

+ Here is the caller graph for this function:

ilMDSettings::save ( )

save

public

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

References getDelimiter(), and isCopyrightSelectionActive().

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

+ Here is the call graph for this function:

ilMDSettings::setDelimiter (   $a_val)

Set delimiter (used in quick editing screen)

Parameters
stringdelimiter

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

{
$this->delimiter = $a_val;
}

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: