ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilCustomUserFieldsGUI. More...
Public Member Functions | |
__construct () | |
executeCommand () | |
listUserDefinedFields () | |
List all custom user fields. More... | |
addField ($a_form=null) | |
Add field. More... | |
getAccessOptions () | |
Get all access options, order is kept in forms. More... | |
initForm ($a_mode="create") | |
Init field form. More... | |
create () | |
edit ($a_form=null) | |
Edit field. More... | |
update () | |
askDeleteField () | |
deleteField () | |
updateFields ($action="") | |
Update custom fields properties (from table gui) More... | |
Static Public Member Functions | |
static | getAccessPermissions () |
Protected Member Functions | |
getPermissions () | |
validateForm ($form, $user_field_definitions, array &$access, array $a_field_permissions=null) | |
Validate field form. More... | |
Protected Attributes | |
$confirm_change | |
$field_id | |
$field_definition | |
$permissions | |
Class ilCustomUserFieldsGUI.
Definition at line 17 of file class.ilCustomUserFieldsGUI.php.
ilCustomUserFieldsGUI::__construct | ( | ) |
Definition at line 24 of file class.ilCustomUserFieldsGUI.php.
References $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), and ilClaimingPermissionHelper\getInstance().
ilCustomUserFieldsGUI::addField | ( | $a_form = null | ) |
Add field.
ilPropertyFormGUI | $a_form |
Definition at line 96 of file class.ilCustomUserFieldsGUI.php.
References $tpl, and initForm().
Referenced by create().
ilCustomUserFieldsGUI::askDeleteField | ( | ) |
Definition at line 509 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $id, $ilCtrl, $lng, $tpl, ilUserDefinedFields\_getInstance(), listUserDefinedFields(), and ilUtil\sendFailure().
ilCustomUserFieldsGUI::create | ( | ) |
Definition at line 355 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $form, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), addField(), array, initForm(), ilUtil\sendSuccess(), and validateForm().
ilCustomUserFieldsGUI::deleteField | ( | ) |
Definition at line 536 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $id, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilUDFPermissionHelper\ACTION_FIELD_DELETE, array, ilUDFPermissionHelper\CONTEXT_FIELD, getPermissions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilCustomUserFieldsGUI::edit | ( | $a_form = null | ) |
Edit field.
ilPropertyFormGUI | $a_form |
Definition at line 397 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 112 of file class.ilCustomUserFieldsGUI.php.
Referenced by initForm(), and validateForm().
|
static |
Definition at line 131 of file class.ilCustomUserFieldsGUI.php.
References array, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CERTIFICATE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_EXPORT, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_REQUIRED, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_SEARCHABLE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_COURSES, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL, and ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION.
Referenced by ilCustomUserFieldSettingsTableGUI\__construct().
|
protected |
Definition at line 42 of file class.ilCustomUserFieldsGUI.php.
References $permissions.
Referenced by deleteField(), and listUserDefinedFields().
ilCustomUserFieldsGUI::initForm | ( | $a_mode = "create" | ) |
Init field form.
string | $a_mode |
Definition at line 153 of file class.ilCustomUserFieldsGUI.php.
References $form, $id, $ilCtrl, $lng, $name, ilMemberAgreement\_hasAgreements(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, array, ilUDFPermissionHelper\CONTEXT_FIELD, getAccessOptions(), ilUtil\sendInfo(), ilFormPropertyGUI\setRequired(), ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CERTIFICATE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_EXPORT, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_REQUIRED, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_SEARCHABLE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_COURSES, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION, ilUDFPermissionHelper\SUBACTION_FIELD_PROPERTIES, ilUDFPermissionHelper\SUBACTION_FIELD_TITLE, 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 68 of file class.ilCustomUserFieldsGUI.php.
References $_GET, $ilCtrl, $lng, $tab, $tpl, ilUDFPermissionHelper\ACTION_UDF_CREATE_FIELD, ilUDFPermissionHelper\CONTEXT_UDF, and getPermissions().
Referenced by askDeleteField(), and updateFields().
ilCustomUserFieldsGUI::update | ( | ) |
Definition at line 408 of file class.ilCustomUserFieldsGUI.php.
References $form, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, array, ilUDFPermissionHelper\CONTEXT_FIELD, ilUserDefinedData\deleteFieldValue(), edit(), initForm(), ilUtil\sendSuccess(), ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CERTIFICATE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_EXPORT, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_REQUIRED, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_SEARCHABLE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_COURSES, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION, ilUDFPermissionHelper\SUBACTION_FIELD_PROPERTIES, ilUDFPermissionHelper\SUBACTION_FIELD_TITLE, UDF_TYPE_SELECT, and validateForm().
ilCustomUserFieldsGUI::updateFields | ( | $action = "" | ) |
Update custom fields properties (from table gui)
Definition at line 570 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $field_id, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, array, ilUDFPermissionHelper\CONTEXT_FIELD, listUserDefinedFields(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CERTIFICATE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_EXPORT, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_REQUIRED, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_SEARCHABLE, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_COURSES, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL, ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL, and ilUDFPermissionHelper\SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION.
|
protected |
Validate field form.
ilPropertyFormGUI | $form | |
ilUserDefinedFields | $user_field_definitions | |
array | $access | |
array | $a_field_permissions |
Definition at line 299 of file class.ilCustomUserFieldsGUI.php.
References $error, $form, $id, $lng, $valid, ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, array, getAccessOptions(), ilUtil\sendFailure(), ilUDFPermissionHelper\SUBACTION_FIELD_PROPERTIES, UDF_DUPLICATE_VALUES, and UDF_TYPE_SELECT.
Referenced by create(), and update().
|
protected |
Definition at line 19 of file class.ilCustomUserFieldsGUI.php.
|
protected |
Definition at line 21 of file class.ilCustomUserFieldsGUI.php.
|
protected |
Definition at line 20 of file class.ilCustomUserFieldsGUI.php.
Referenced by updateFields().
|
protected |
Definition at line 22 of file class.ilCustomUserFieldsGUI.php.
Referenced by getPermissions().