|
ILIAS
Release_4_2_x_branch Revision 61807
|
Collaboration diagram for ilSetting:Public Member Functions | |
| ilSetting ($a_module="common", $a_disabled_cache=false) | |
| Initialize settings. | |
| read () | |
| Read settings data. | |
| get ($a_keyword, $a_default_value=false) | |
| get setting | |
| deleteAll () | |
| Delete all settings of a current module. | |
| deleteLike ($a_like) | |
| Delete all settings corresponding to a like string. | |
| delete ($a_keyword) | |
| delete one value from settingstable public | |
| getAll () | |
| read all values from settingstable public | |
| set ($a_key, $a_val) | |
| write one value to db-table settings public | |
| 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 | |
| static | _changeValueType ($a_new_type= 'text') |
| change the type of the value column in the database | |
| static | _getLongerSettings ($a_limit= '4000') |
| get a list of setting records with values loger than a limit | |
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 | |
| 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 | |
ILIAS Setting Class.
Definition at line 32 of file class.ilSetting.php.
|
static |
change the type of the value column in the database
| string | 'text' or 'clob' |
Definition at line 280 of file class.ilSetting.php.
References $ilDB, and _getValueType().
Referenced by ilSetupGUI\changeSettingsType().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get a list of setting records with values loger than a limit
| int | character limit (default: 4000) |
Definition at line 330 of file class.ilSetting.php.
References $ilDB, $query, $result, and $row.
Referenced by ilSetupGUI\changeSettingsType(), and ilSetupGUI\showLongerSettings().
Here is the caller graph for this function:
|
static |
get the type of the value column in the database
Definition at line 257 of file class.ilSetting.php.
References ilDBAnalyzer\getFieldInformation().
Referenced by _changeValueType(), ilSetupGUI\changeSettingsType(), ilSetupGUI\initSettingsTypeForm(), and set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 242 of file class.ilSetting.php.
References $data, $ilDB, $query, and $res.
Referenced by ilObjSAHSLearningModuleAccess\_lookupCertificate().
Here is the caller graph for this function:| ilSetting::delete | ( | $a_keyword | ) |
delete one value from settingstable public
| string | keyword |
Definition at line 173 of file class.ilSetting.php.
References $ilDB.
| ilSetting::deleteAll | ( | ) |
| ilSetting::deleteLike | ( | $a_like | ) |
Delete all settings corresponding to a like string.
public
Definition at line 155 of file class.ilSetting.php.
References $ilDB, $query, and read().
Here is the call graph for this function:| 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 114 of file class.ilSetting.php.
References ILIAS_VERSION.
| ilSetting::getAll | ( | ) |
read all values from settingstable public
Definition at line 193 of file class.ilSetting.php.
References $setting.
| ilSetting::ilSetting | ( | $a_module = "common", |
|
$a_disabled_cache = false |
|||
| ) |
Initialize settings.
Definition at line 55 of file class.ilSetting.php.
Here is the call graph for this function:| ilSetting::read | ( | ) |
Read settings data.
Definition at line 72 of file class.ilSetting.php.
References $ilDB, $module, $query, $res, $row, and $setting.
Referenced by deleteLike(), and ilSetting().
Here is the caller graph for this function:| ilSetting::set | ( | $a_key, | |
| $a_val | |||
| ) |
write one value to db-table settings public
| string | keyword |
| string | value |
Definition at line 205 of file class.ilSetting.php.
References $ilDB, $lng, _getValueType(), and ilUtil\sendFailure().
Referenced by setScormDebug().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetting::setScormDebug | ( | $a_key, | |
| $a_val | |||
| ) |
Definition at line 232 of file class.ilSetting.php.
Here is the call graph for this function:| ilSetting::$module = "" |
Definition at line 50 of file class.ilSetting.php.
Referenced by 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.