ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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.
|
static |
get a list of setting records with values loger than a limit
Definition at line 268 of file class.ilSetting.php.
References $DIC, $ilDB, $query, and ILIAS\LTI\ToolProvider\$settings.
|
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, $query, and $res.
Referenced by ilObjForum\lookupStatisticsByRefId(), and ilCronManagerImpl\runActiveJobs().
ilSetting::delete | ( | string | $a_keyword | ) |
Implements ILIAS\Administration\Setting.
Definition at line 129 of file class.ilSetting.php.
Referenced by ilObjAssessmentFolder\_setManualScoring(), ilCertificateScormTemplateDeleteAction\delete(), ilObjNotificationAdminGUI\saveOSDSettings(), and ilObjAssessmentFolder\setScoringAdjustableQuestions().
ilSetting::deleteAll | ( | ) |
Implements ILIAS\Administration\Setting.
Definition at line 106 of file class.ilSetting.php.
References $db, $ilDB, and $query.
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 ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getForbiddenQuestionTypes(), ilObjAssessmentFolder\_getLogLanguage(), ilObjAssessmentFolder\_getManualScoring(), ilObjAssessmentFolder\_getManualScoringTypes(), ilObjAdvancedEditing\_getUsedHTMLTags(), ilCleanCOPageHistoryCronjob\getCronDays(), ILIAS\Style\Content\Object\ObjectManager\getEffectiveStyleId(), ilCleanCOPageHistoryCronjob\getKeepEntries(), ILIAS\Awareness\WidgetManager\getListData(), ilPersonalProfileMode\getMode(), ilLMTOCExplorerGUI\getNodeIcon(), ilObjAssessmentFolder\getScoringAdjustableQuestions(), ilObjAssessmentFolder\getScoringAdjustmentEnabled(), ILIAS\Style\Content\Object\ObjectManager\getSelectableStyles(), ilUserProfilePromptDataGateway\getSettings(), ILIAS\Notifications\Provider\AwarenessToastProvider\getToasts(), ilObjLearningHistorySettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjNotesSettingsGUI\initForm(), ilObjPortfolio\isCommentsExportPossible(), ilObjWiki\isCommentsExportPossible(), ilOnScreenChatGUI\isOnScreenChatAccessible(), ilCertificateAppEventListener\processEntry(), 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, $query, $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 ilObjAssessmentFolder\_enableAssessmentLogging(), ilObjAssessmentFolder\_setForbiddenQuestionTypes(), ilObjAssessmentFolder\_setLogLanguage(), ilObjAssessmentFolder\_setManualScoring(), ilMailCronNotification\activationWasToggled(), ilForumCronNotification\activationWasToggled(), ilMembershipCronNotifications\activationWasToggled(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilObjNotificationAdminGUI\saveOSDSettings(), ilUserProfilePromptDataGateway\saveSettings(), ilObjLearningHistorySettingsGUI\saveSettings(), ilObjNotesSettingsGUI\saveSettings(), ilObjCommentsSettingsGUI\saveSettings(), ilCleanCOPageHistoryCronjob\setCronDays(), ilCleanCOPageHistoryCronjob\setKeepEntries(), ilObjAdvancedEditing\setRichTextEditor(), ilObjAssessmentFolder\setScoringAdjustableQuestions(), ilObjAssessmentFolder\setScoringAdjustmentEnabled(), 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.