ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct ($a_id, $a_user_id=null) | |
Constructor. | |
set ($a_data) | |
Set Settings. | |
reset () | |
Remove all settings (internally) | |
enabled ($a_option) | |
Check if a specific option is enabled. | |
getValue ($a_option) | |
Get value. | |
setValue ($a_option, $a_value) | |
Set value. | |
deleteValue ($a_option) | |
Delete value. | |
valueExists ($a_option) | |
Does value exist in settings? | |
store () | |
Store settings in DB. | |
delete ($a_reset=true) | |
Delete user related data. | |
importFromForm (ilPropertyFormGUI $a_form) | |
Import settings from form. | |
exportToForm (ilPropertyFormGUI $a_form) | |
Export settings from form. |
Static Public Member Functions | |
static | deleteAllForUser ($a_user_id) |
Delete all settings for user id. |
Protected Member Functions | |
read () | |
Read store settings. |
Protected Attributes | |
$db | |
$user_id | |
$id | |
$settings = array() |
ilUserFormSettings::__construct | ( | $a_id, | |
$a_user_id = null |
|||
) |
Constructor.
int | $a_user_id | |
int | $a_id |
Definition at line 43 of file class.ilUserFormSettings.php.
References $ilUser, and read().
ilUserFormSettings::delete | ( | $a_reset = true | ) |
Delete user related data.
bool | $a_reset |
Definition at line 180 of file class.ilUserFormSettings.php.
References $query, and reset().
|
static |
Delete all settings for user id.
Definition at line 196 of file class.ilUserFormSettings.php.
References $query.
ilUserFormSettings::deleteValue | ( | $a_option | ) |
Delete value.
string | $a_option |
Definition at line 118 of file class.ilUserFormSettings.php.
References valueExists().
ilUserFormSettings::enabled | ( | $a_option | ) |
Check if a specific option is enabled.
string | $a_option |
Definition at line 83 of file class.ilUserFormSettings.php.
References getValue().
ilUserFormSettings::exportToForm | ( | ilPropertyFormGUI | $a_form | ) |
Export settings from form.
ilPropertyFormGUI | $a_form |
Definition at line 245 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 94 of file class.ilUserFormSettings.php.
References valueExists().
Referenced by enabled(), and exportToForm().
ilUserFormSettings::importFromForm | ( | ilPropertyFormGUI | $a_form | ) |
Import settings from form.
ilPropertyFormGUI | $a_form |
Definition at line 208 of file class.ilUserFormSettings.php.
References ilPropertyFormGUI\getItems(), IL_CAL_DATETIME, reset(), and setValue().
|
protected |
Read store settings.
private
Definition at line 160 of file class.ilUserFormSettings.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and reset().
Referenced by __construct().
ilUserFormSettings::reset | ( | ) |
Remove all settings (internally)
Definition at line 72 of file class.ilUserFormSettings.php.
Referenced by delete(), importFromForm(), and read().
ilUserFormSettings::set | ( | $a_data | ) |
Set Settings.
array | Array of Settings |
Definition at line 64 of file class.ilUserFormSettings.php.
ilUserFormSettings::setValue | ( | $a_option, | |
$a_value | |||
) |
Set value.
string | $a_option | |
mmixed | $a_value |
Definition at line 108 of file class.ilUserFormSettings.php.
Referenced by importFromForm().
ilUserFormSettings::store | ( | ) |
Store settings in DB.
Definition at line 140 of file class.ilUserFormSettings.php.
References $query.
ilUserFormSettings::valueExists | ( | $a_option | ) |
Does value exist in settings?
string | $a_option |
Definition at line 132 of file class.ilUserFormSettings.php.
Referenced by deleteValue(), exportToForm(), and getValue().
|
protected |
Definition at line 32 of file class.ilUserFormSettings.php.
|
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.