ILIAS
release_8 Revision v8.19
|
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_id, ?int $a_user_id=null) | |
hasStoredEntry () | |
Check if entry exist. More... | |
set (array $a_data) | |
reset () | |
enabled (string $a_option) | |
Check if a specific option is enabled. More... | |
getValue (string $a_option) | |
Get value. More... | |
setValue (string $a_option, $a_value) | |
deleteValue (string $a_option) | |
Delete value. More... | |
valueExists (string $a_option) | |
Does value exist in settings? More... | |
store () | |
delete (bool $a_reset=true) | |
Delete user related data. More... | |
importFromForm (ilPropertyFormGUI $a_form) | |
Import settings from form. More... | |
exportToForm (ilPropertyFormGUI $a_form, bool $a_set_post=false) | |
Export settings to form. More... | |
Static Public Member Functions | |
static | deleteAllForUser (int $a_user_id) |
Delete all settings for user id. More... | |
static | deleteAllForId (string $a_id) |
Delete for id. More... | |
static | deleteAllForPrefix (string $a_prefix) |
Delete all entries for prefix. More... | |
Protected Member Functions | |
read () | |
Protected Attributes | |
ilDBInterface | $db |
int | $user_id |
string | $id |
array | $settings = array() |
Private Attributes | |
bool | $has_stored_entry = false |
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
Definition at line 22 of file class.ilUserFormSettings.php.
ilUserFormSettings::__construct | ( | string | $a_id, |
?int | $a_user_id = null |
||
) |
Definition at line 30 of file class.ilUserFormSettings.php.
References $DIC, $ilDB, $ilUser, ILIAS\Repository\int(), and read().
ilUserFormSettings::delete | ( | bool | $a_reset = true | ) |
Delete user related data.
Definition at line 150 of file class.ilUserFormSettings.php.
References $query, and reset().
|
static |
Delete for id.
Definition at line 178 of file class.ilUserFormSettings.php.
References $GLOBALS, and $query.
|
static |
Delete all entries for prefix.
Definition at line 188 of file class.ilUserFormSettings.php.
References $GLOBALS, and $query.
Referenced by ilMemberExportSettingsGUI\savePrintViewSettings().
|
static |
Delete all settings for user id.
Definition at line 165 of file class.ilUserFormSettings.php.
References $DIC, $ilDB, and $query.
ilUserFormSettings::deleteValue | ( | string | $a_option | ) |
Delete value.
Definition at line 102 of file class.ilUserFormSettings.php.
References ILIAS\Repository\settings(), and valueExists().
ilUserFormSettings::enabled | ( | string | $a_option | ) |
Check if a specific option is enabled.
Definition at line 74 of file class.ilUserFormSettings.php.
References getValue().
ilUserFormSettings::exportToForm | ( | ilPropertyFormGUI | $a_form, |
bool | $a_set_post = false |
||
) |
Export settings to form.
Definition at line 229 of file class.ilUserFormSettings.php.
References ilPropertyFormGUI\getItems(), getValue(), IL_CAL_DATETIME, and valueExists().
ilUserFormSettings::getValue | ( | string | $a_option | ) |
Get value.
Definition at line 83 of file class.ilUserFormSettings.php.
References ILIAS\Repository\settings(), and valueExists().
Referenced by enabled(), and exportToForm().
ilUserFormSettings::hasStoredEntry | ( | ) |
Check if entry exist.
Definition at line 53 of file class.ilUserFormSettings.php.
References $has_stored_entry.
ilUserFormSettings::importFromForm | ( | ilPropertyFormGUI | $a_form | ) |
Import settings from form.
Definition at line 199 of file class.ilUserFormSettings.php.
References ilPropertyFormGUI\getItems(), IL_CAL_DATETIME, reset(), and setValue().
|
protected |
Definition at line 130 of file class.ilUserFormSettings.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, reset(), and ILIAS\Repository\settings().
Referenced by __construct().
ilUserFormSettings::reset | ( | ) |
Definition at line 66 of file class.ilUserFormSettings.php.
References ILIAS\Repository\settings().
Referenced by delete(), importFromForm(), and read().
ilUserFormSettings::set | ( | array | $a_data | ) |
array | Array of Settings |
Definition at line 61 of file class.ilUserFormSettings.php.
References ILIAS\Repository\settings().
ilUserFormSettings::setValue | ( | string | $a_option, |
$a_value | |||
) |
mixed | $a_value |
Definition at line 94 of file class.ilUserFormSettings.php.
References ILIAS\Repository\settings().
Referenced by importFromForm().
ilUserFormSettings::store | ( | ) |
Definition at line 117 of file class.ilUserFormSettings.php.
References $query, and ILIAS\Repository\settings().
ilUserFormSettings::valueExists | ( | string | $a_option | ) |
Does value exist in settings?
Definition at line 112 of file class.ilUserFormSettings.php.
References ILIAS\Repository\settings().
Referenced by deleteValue(), exportToForm(), and getValue().
|
protected |
Definition at line 24 of file class.ilUserFormSettings.php.
|
private |
Definition at line 28 of file class.ilUserFormSettings.php.
Referenced by hasStoredEntry().
|
protected |
Definition at line 26 of file class.ilUserFormSettings.php.
|
protected |
Definition at line 27 of file class.ilUserFormSettings.php.
|
protected |
Definition at line 25 of file class.ilUserFormSettings.php.