ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Public Member Functions | |
__construct (string $a_module="common", bool $a_disabled_cache=false) | |
getModule () | |
read () | |
get (string $a_keyword, ?string $a_default_value=null) | |
get setting More... | |
deleteAll () | |
deleteLike (string $a_like) | |
delete (string $a_keyword) | |
getAll () | |
set (string $a_key, string $a_val) | |
setScormDebug (string $a_key, string $a_val) | |
Static Public Member Functions | |
static | _lookupValue (string $a_module, string $a_keyword) |
static | _getValueType () |
Get the type of the value column in the database. More... | |
static | _changeValueType (string $a_new_type='text') |
change the type of the value column in the database More... | |
static | _getLongerSettings (int $a_limit=4000) |
get a list of setting records with values loger than a limit More... | |
Data Fields | |
array | $setting = array() |
string | $module = "" |
Protected Attributes | |
ilDBInterface | $db |
bool | $cache_disabled = false |
Static Private Attributes | |
static array | $settings_cache = array() |
cache for the read settings ilSetting is instantiated more than once per request for some modules The cache avoids reading them from the DB with each instance More... | |
static string | $value_type = null |
the type of settings value field in database This is determined in the set method to get a correct DB insert Don't set the value type to force a detection at first access More... | |
ILIAS Setting Class.
Definition at line 26 of file class.ilSetting.php.
ilSetting::__construct | ( | string | $a_module = "common" , |
bool | $a_disabled_cache = false |
||
) |
Definition at line 47 of file class.ilSetting.php.
References $DIC, $ilDB, and read().
|
static |
change the type of the value column in the database
string | $a_new_type | 'text' or 'clob' |
ilDatabaseException |
Definition at line 218 of file class.ilSetting.php.
References $DIC, $ilDB, and null.
|
static |
get a list of setting records with values loger than a limit
Definition at line 268 of file class.ilSetting.php.
|
static |
Get the type of the value column in the database.
ilDatabaseException |
Definition at line 200 of file class.ilSetting.php.
|
static |
Implements ILIAS\Administration\Setting.
Definition at line 182 of file class.ilSetting.php.
References $data, $DIC, $ilDB, $res, and null.
Referenced by ilObjectAdditionalPropertiesLegacyRepository\areCustomIconsEnabled(), and ILIAS\BackgroundTasks\Task\Job\Manager\JobManagerImpl\runActiveJobs().
ilSetting::delete | ( | string | $a_keyword | ) |
Implements ILIAS\Administration\Setting.
Definition at line 129 of file class.ilSetting.php.
Referenced by ilCertificateScormTemplateDeleteAction\delete(), and ilObjNotificationAdminGUI\saveOSDSettings().
ilSetting::deleteAll | ( | ) |
ilSetting::deleteLike | ( | string | $a_like | ) |
ilSetting::get | ( | string | $a_keyword, |
?string | $a_default_value = null |
||
) |
get setting
Implements ILIAS\Administration\Setting.
Definition at line 99 of file class.ilSetting.php.
Referenced by ilObjAdvancedEditing\_getUsedHTMLTags(), ilNusoapUserAdministrationAdapter\enableWSDL(), ilCleanCOPageHistoryCronjob\getCronDays(), ILIAS\Style\Content\Object\ObjectManager\getEffectiveStyleId(), ilCleanCOPageHistoryCronjob\getKeepEntries(), ILIAS\Awareness\WidgetManager\getListData(), ilLMTOCExplorerGUI\getNodeIcon(), ILIAS\Style\Content\Object\ObjectManager\getSelectableStyles(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjPortfolio\isCommentsExportPossible(), ilObjWiki\isCommentsExportPossible(), ilOnScreenChatGUI\isOnScreenChatAccessible(), and ilObjNotificationAdminGUI\showOSDSettings().
ilSetting::getAll | ( | ) |
Implements ILIAS\Administration\Setting.
Definition at line 140 of file class.ilSetting.php.
References $setting.
Referenced by ilObjAuthSettingsGUI\apacheAuthSettingsObject().
ilSetting::getModule | ( | ) |
Implements ILIAS\Administration\Setting.
Definition at line 65 of file class.ilSetting.php.
References $module.
ilSetting::read | ( | ) |
Implements ILIAS\Administration\Setting.
Definition at line 70 of file class.ilSetting.php.
References $db, $ilDB, $module, $res, and $setting.
Referenced by __construct().
ilSetting::set | ( | string | $a_key, |
string | $a_val | ||
) |
Implements ILIAS\Administration\Setting.
Definition at line 145 of file class.ilSetting.php.
References $db, $DIC, and $ilDB.
Referenced by ilMailCronNotification\activationWasToggled(), ilForumCronNotification\activationWasToggled(), ilMembershipCronNotifications\activationWasToggled(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjNotificationAdminGUI\saveOSDSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilCleanCOPageHistoryCronjob\setCronDays(), ilCleanCOPageHistoryCronjob\setKeepEntries(), ilObjAdvancedEditing\setRichTextEditor(), and ilObjAdvancedEditing\setUsedHTMLTags().
ilSetting::setScormDebug | ( | string | $a_key, |
string | $a_val | ||
) |
Definition at line 173 of file class.ilSetting.php.
|
protected |
Definition at line 45 of file class.ilSetting.php.
|
protected |
Definition at line 28 of file class.ilSetting.php.
Referenced by delete(), deleteAll(), deleteLike(), read(), set(), and setScormDebug().
string ilSetting::$module = "" |
Definition at line 44 of file class.ilSetting.php.
Referenced by getModule(), and read().
array ilSetting::$setting = array() |
Definition at line 43 of file class.ilSetting.php.
|
staticprivate |
cache for the read settings ilSetting is instantiated more than once per request for some modules The cache avoids reading them from the DB with each instance
Definition at line 35 of file class.ilSetting.php.
|
staticprivate |
the type of settings value field in database This is determined in the set method to get a correct DB insert Don't set the value type to force a detection at first access
Definition at line 42 of file class.ilSetting.php.