ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPageEditorSettings Class Reference

Page editor settings. More...

+ Collaboration diagram for ilPageEditorSettings:

Static Public Member Functions

static getGroups ()
 Get all settings groups.
static writeSetting ($a_grp, $a_name, $a_value)
 Write Setting.
static lookupSetting ($a_grp, $a_name, $a_default=false)
 Lookup setting.
static lookupSettingByParentType ($a_par_type, $a_name, $a_default=false)
 Lookup setting by parent type.

Static Protected Attributes

static $option_groups

Detailed Description

Page editor settings.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilPageEditorSettings.php.

Member Function Documentation

static ilPageEditorSettings::getGroups ( )
static

Get all settings groups.

Definition at line 27 of file class.ilPageEditorSettings.php.

References $option_groups.

Referenced by ilObjAdvancedEditingGUI\addPageEditorSettingsSubtabs(), and ilObjAdvancedEditingGUI\showPageEditorSettingsObject().

{
}

+ Here is the caller graph for this function:

static ilPageEditorSettings::lookupSetting (   $a_grp,
  $a_name,
  $a_default = false 
)
static

Lookup setting.

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

Referenced by ilObjAdvancedEditingGUI\initPageEditorForm(), and lookupSettingByParentType().

{
global $ilDB;
$set = $ilDB->query("SELECT value FROM page_editor_settings ".
" WHERE settings_grp = ".$ilDB->quote($a_grp, "text").
" AND name = ".$ilDB->quote($a_name, "text")
);
if ($rec = $ilDB->fetchAssoc($set))
{
return $rec["value"];
}
return $a_default;
}

+ Here is the caller graph for this function:

static ilPageEditorSettings::lookupSettingByParentType (   $a_par_type,
  $a_name,
  $a_default = false 
)
static

Lookup setting by parent type.

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

References lookupSetting().

Referenced by ilPageContentGUI\getBBMenu(), ilPCParagraphGUI\getCharStyleSelector(), and ilPageObjectGUI\getTinyMenu().

{
foreach(self::$option_groups as $g => $types)
{
if (in_array($a_par_type, $types))
{
$grp = $g;
}
}
if ($grp != "")
{
return ilPageEditorSettings::lookupSetting($grp, $a_name, $a_default);
}
return $a_default;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilPageEditorSettings::writeSetting (   $a_grp,
  $a_name,
  $a_value 
)
static

Write Setting.

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

Referenced by ilObjAdvancedEditingGUI\savePageEditorSettingsObject().

{
global $ilDB;
$ilDB->manipulate("DELETE FROM page_editor_settings WHERE ".
"settings_grp = ".$ilDB->quote($a_grp, "text").
" AND name = ".$ilDB->quote($a_name, "text")
);
$ilDB->manipulate("INSERT INTO page_editor_settings ".
"(settings_grp, name, value) VALUES (".
$ilDB->quote($a_grp, "text").",".
$ilDB->quote($a_name, "text").",".
$ilDB->quote($a_value, "text").
")");
}

+ Here is the caller graph for this function:

Field Documentation

ilPageEditorSettings::$option_groups
staticprotected
Initial value:
array(
"lm" => array("lm", "dbk"),
"wiki" => array("wpg"),
"scorm" => array("sahs"),
"glo" => array("gdf"),
"test" => array("qpl"),
"rep" => array("root", "cat", "grp", "crs", "fold")
)

Definition at line 15 of file class.ilPageEditorSettings.php.

Referenced by getGroups().


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