ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_id, $a_user_id=null) | |
Constructor. More... | |
hasStoredEntry () | |
Check if entry exist. More... | |
set ($a_data) | |
Set Settings. More... | |
reset () | |
Remove all settings (internally) More... | |
enabled ($a_option) | |
Check if a specific option is enabled. More... | |
getValue ($a_option) | |
Get value. More... | |
setValue ($a_option, $a_value) | |
Set value. More... | |
deleteValue ($a_option) | |
Delete value. More... | |
valueExists ($a_option) | |
Does value exist in settings? More... | |
store () | |
Store settings in DB. More... | |
delete ($a_reset=true) | |
Delete user related data. More... | |
importFromForm (ilPropertyFormGUI $a_form) | |
Import settings from form. More... | |
exportToForm (ilPropertyFormGUI $a_form) | |
Export settings from form. More... | |
Static Public Member Functions | |
static | deleteAllForUser ($a_user_id) |
Delete all settings for user id. More... | |
static | deleteAllForId ($a_id) |
Delete for id. More... | |
static | deleteAllForPrefix ($a_prefix) |
Delete all entries for prefix. More... | |
Protected Member Functions | |
read () | |
Read store settings. More... | |
Protected Attributes | |
$db | |
$user_id | |
$id | |
$settings = array() | |
Private Attributes | |
$has_stored_entry = false | |
ilUserFormSettings::__construct | ( | $a_id, | |
$a_user_id = null |
|||
) |
ilUserFormSettings::delete | ( | $a_reset = true | ) |
Delete user related data.
bool | $a_reset |
Definition at line 195 of file class.ilUserFormSettings.php.
References $query, and reset().
|
static |
Delete for id.
string | $a_id |
Definition at line 223 of file class.ilUserFormSettings.php.
References $GLOBALS, and $query.
|
static |
Delete all entries for prefix.
type | $a_prefix |
Definition at line 235 of file class.ilUserFormSettings.php.
References $GLOBALS, and $query.
Referenced by ilMemberExportSettingsGUI\savePrintViewSettings().
|
static |
ilUserFormSettings::deleteValue | ( | $a_option | ) |
Delete value.
string | $a_option |
Definition at line 128 of file class.ilUserFormSettings.php.
References settings(), and valueExists().
Referenced by ilAttendanceList\initForm().
ilUserFormSettings::enabled | ( | $a_option | ) |
Check if a specific option is enabled.
string | $a_option |
Definition at line 93 of file class.ilUserFormSettings.php.
References getValue().
ilUserFormSettings::exportToForm | ( | ilPropertyFormGUI | $a_form | ) |
Export settings from form.
ilPropertyFormGUI | $a_form |
Definition at line 290 of file class.ilUserFormSettings.php.
References ilPropertyFormGUI\getItems(), getValue(), IL_CAL_DATETIME, and valueExists().
ilUserFormSettings::getValue | ( | $a_option | ) |
Get value.
string | $a_option |
Definition at line 104 of file class.ilUserFormSettings.php.
References settings(), and valueExists().
Referenced by enabled(), and exportToForm().
ilUserFormSettings::hasStoredEntry | ( | ) |
Check if entry exist.
Definition at line 64 of file class.ilUserFormSettings.php.
References $has_stored_entry.
ilUserFormSettings::importFromForm | ( | ilPropertyFormGUI | $a_form | ) |
Import settings from form.
ilPropertyFormGUI | $a_form |
Definition at line 249 of file class.ilUserFormSettings.php.
References ilPropertyFormGUI\getItems(), IL_CAL_DATETIME, reset(), and setValue().
|
protected |
Read store settings.
private
Definition at line 170 of file class.ilUserFormSettings.php.
References $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, reset(), and settings().
Referenced by __construct().
ilUserFormSettings::reset | ( | ) |
Remove all settings (internally)
Definition at line 82 of file class.ilUserFormSettings.php.
References array, and settings().
Referenced by delete(), importFromForm(), and read().
ilUserFormSettings::set | ( | $a_data | ) |
Set Settings.
array | Array of Settings |
Definition at line 74 of file class.ilUserFormSettings.php.
References settings().
ilUserFormSettings::setValue | ( | $a_option, | |
$a_value | |||
) |
Set value.
string | $a_option | |
mmixed | $a_value |
Definition at line 118 of file class.ilUserFormSettings.php.
References settings().
Referenced by importFromForm().
ilUserFormSettings::store | ( | ) |
Store settings in DB.
Definition at line 150 of file class.ilUserFormSettings.php.
References $query, and settings().
ilUserFormSettings::valueExists | ( | $a_option | ) |
Does value exist in settings?
string | $a_option |
Definition at line 142 of file class.ilUserFormSettings.php.
References array, and settings().
Referenced by deleteValue(), exportToForm(), and getValue().
|
protected |
Definition at line 32 of file class.ilUserFormSettings.php.
|
private |
Definition at line 36 of file class.ilUserFormSettings.php.
Referenced by hasStoredEntry().
|
protected |
Definition at line 34 of file class.ilUserFormSettings.php.
|
protected |
Definition at line 35 of file class.ilUserFormSettings.php.
|
protected |
Definition at line 33 of file class.ilUserFormSettings.php.