ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilCustomUserFieldsGUI. More...
Public Member Functions | |
__construct () | |
& | executeCommand () |
listUserDefinedFields () | |
List all custom user fields. | |
addField ($a_form=null) | |
Add field. | |
getAccessOptions () | |
Get all access options, order is kept in forms. | |
initForm ($a_mode="create") | |
Init field form. | |
create () | |
edit ($a_form=null) | |
Edit field. | |
update () | |
askDeleteField () | |
deleteField () | |
updateFields ($action="") | |
Update custom fields properties (from table gui) |
Protected Member Functions | |
validateForm ($form, $user_field_definitions, array &$access) | |
Validate field form. |
Protected Attributes | |
$confirm_change | |
$field_id | |
$field_definition |
Class ilCustomUserFieldsGUI.
Definition at line 16 of file class.ilCustomUserFieldsGUI.php.
ilCustomUserFieldsGUI::__construct | ( | ) |
Definition at line 22 of file class.ilCustomUserFieldsGUI.php.
References $_REQUEST, $ilCtrl, $lng, and ilUserDefinedFields\_getInstance().
ilCustomUserFieldsGUI::addField | ( | $a_form = null | ) |
Add field.
ilPropertyFormGUI | $a_form |
Definition at line 83 of file class.ilCustomUserFieldsGUI.php.
References $tpl, and initForm().
Referenced by create().
ilCustomUserFieldsGUI::askDeleteField | ( | ) |
Definition at line 401 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilUserDefinedFields\_getInstance(), listUserDefinedFields(), and ilUtil\sendFailure().
ilCustomUserFieldsGUI::create | ( | ) |
Definition at line 281 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), addField(), initForm(), ilUtil\sendSuccess(), and validateForm().
ilCustomUserFieldsGUI::deleteField | ( | ) |
Definition at line 430 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), and ilUtil\sendSuccess().
ilCustomUserFieldsGUI::edit | ( | $a_form = null | ) |
Edit field.
ilPropertyFormGUI | $a_form |
Definition at line 325 of file class.ilCustomUserFieldsGUI.php.
References $tpl, and initForm().
Referenced by update().
& ilCustomUserFieldsGUI::executeCommand | ( | ) |
ilCustomUserFieldsGUI::getAccessOptions | ( | ) |
Get all access options, order is kept in forms.
Definition at line 100 of file class.ilCustomUserFieldsGUI.php.
References $lng.
Referenced by initForm(), and validateForm().
ilCustomUserFieldsGUI::initForm | ( | $a_mode = "create" | ) |
Init field form.
string | $a_mode |
Definition at line 125 of file class.ilCustomUserFieldsGUI.php.
References $ilCtrl, $lng, ilMemberAgreement\_hasAgreements(), getAccessOptions(), ilUtil\sendInfo(), ilFormPropertyGUI\setRequired(), ilCheckboxGroupInputGUI\setValue(), UDF_TYPE_SELECT, UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by addField(), create(), edit(), and update().
ilCustomUserFieldsGUI::listUserDefinedFields | ( | ) |
List all custom user fields.
Definition at line 62 of file class.ilCustomUserFieldsGUI.php.
References $ilCtrl, $lng, $tab, and $tpl.
Referenced by askDeleteField(), and updateFields().
ilCustomUserFieldsGUI::update | ( | ) |
Definition at line 337 of file class.ilCustomUserFieldsGUI.php.
References $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), ilUserDefinedData\deleteFieldValue(), edit(), initForm(), ilUtil\sendSuccess(), UDF_TYPE_SELECT, and validateForm().
ilCustomUserFieldsGUI::updateFields | ( | $action = "" | ) |
Update custom fields properties (from table gui)
Definition at line 447 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $field_id, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), listUserDefinedFields(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Validate field form.
ilPropertyFormGUI | $form | |
ilUserDefinedFields | $user_field_definitions | |
array | $access |
Definition at line 228 of file class.ilCustomUserFieldsGUI.php.
References $lng, $valid, getAccessOptions(), ilUtil\sendFailure(), UDF_DUPLICATE_VALUES, and UDF_TYPE_SELECT.
Referenced by create(), and update().
|
protected |
Definition at line 18 of file class.ilCustomUserFieldsGUI.php.
|
protected |
Definition at line 20 of file class.ilCustomUserFieldsGUI.php.
|
protected |
Definition at line 19 of file class.ilCustomUserFieldsGUI.php.
Referenced by updateFields().