ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_module="common", $a_disabled_cache=false) | |
Initialize settings. More... | |
getModule () | |
Get currernt module. More... | |
read () | |
Read settings data. More... | |
get ($a_keyword, $a_default_value=false) | |
get setting More... | |
deleteAll () | |
Delete all settings of a current module. More... | |
deleteLike ($a_like) | |
Delete all settings corresponding to a like string. More... | |
delete ($a_keyword) | |
delete one value from settingstable public More... | |
getAll () | |
read all values from settingstable public More... | |
set ($a_key, $a_val) | |
write one value to db-table settings public More... | |
setScormDebug ($a_key, $a_val) | |
Static Public Member Functions | |
static | _lookupValue ($a_module, $a_keyword) |
static | _getValueType () |
Get the type of the value column in the database. More... | |
static | _changeValueType ($a_new_type='text') |
change the type of the value column in the database More... | |
static | _getLongerSettings ($a_limit='4000') |
get a list of setting records with values loger than a limit More... | |
Data Fields | |
$setting = array() | |
$module = "" | |
Static Private Attributes | |
static | $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 | $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... | |
ilSetting::__construct | ( | $a_module = "common" , |
|
$a_disabled_cache = false |
|||
) |
Initialize settings.
Definition at line 55 of file class.ilSetting.php.
|
static |
change the type of the value column in the database
string | 'text' or 'clob' |
Definition at line 293 of file class.ilSetting.php.
Referenced by ilSetupGUI\changeSettingsType().
|
static |
get a list of setting records with values loger than a limit
int | character limit (default: 4000) |
Definition at line 343 of file class.ilSetting.php.
References $ilDB, $query, $result, $row, and array.
Referenced by ilSetupGUI\changeSettingsType(), and ilSetupGUI\showLongerSettings().
|
static |
Get the type of the value column in the database.
ilDatabaseException |
Definition at line 270 of file class.ilSetting.php.
References $info.
Referenced by ilSetupGUI\changeSettingsType(), and ilSetupGUI\initSettingsTypeForm().
|
static |
ilSetting::delete | ( | $a_keyword | ) |
delete one value from settingstable public
string | keyword |
Definition at line 185 of file class.ilSetting.php.
References $ilDB.
ilSetting::deleteAll | ( | ) |
Delete all settings of a current module.
public
Definition at line 145 of file class.ilSetting.php.
References $ilDB, $query, and array.
ilSetting::deleteLike | ( | $a_like | ) |
ilSetting::get | ( | $a_keyword, | |
$a_default_value = false |
|||
) |
get setting
public
string | keyword |
string | default_value This value is returned, when no setting has been found for the keyword. |
Definition at line 122 of file class.ilSetting.php.
References ILIAS_VERSION.
Referenced by ilObjStudyProgrammeTreeGUI\create(), ilLanguage\getUserLanguage(), ilObjStudyProgrammeAdminGUI\initFormSettings(), and ilOnScreenChatGUI\isOnScreenChatAccessible().
ilSetting::getAll | ( | ) |
read all values from settingstable public
Definition at line 205 of file class.ilSetting.php.
References $setting.
ilSetting::getModule | ( | ) |
ilSetting::read | ( | ) |
Read settings data.
Definition at line 80 of file class.ilSetting.php.
References $ilDB, $module, $query, $res, $row, $setting, and array.
Referenced by __construct().
ilSetting::set | ( | $a_key, | |
$a_val | |||
) |
write one value to db-table settings public
string | keyword |
string | value |
Definition at line 217 of file class.ilSetting.php.
References $ilDB, $lng, array, and ilUtil\sendFailure().
Referenced by ilObjStudyProgrammeAdminGUI\saveSettings(), and setScormDebug().
ilSetting::setScormDebug | ( | $a_key, | |
$a_val | |||
) |
Definition at line 244 of file class.ilSetting.php.
ilSetting::$module = "" |
Definition at line 50 of file class.ilSetting.php.
Referenced by getModule(), and read().
ilSetting::$setting = array() |
Definition at line 49 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 39 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 46 of file class.ilSetting.php.