ILIAS
Release_5_0_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) |
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. |
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 $_REQUEST, $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 540 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilUserDefinedFields\_getInstance(), listUserDefinedFields(), and ilUtil\sendFailure().
ilCustomUserFieldsGUI::create | ( | ) |
Definition at line 374 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), addField(), initForm(), ilUtil\sendSuccess(), and validateForm().
ilCustomUserFieldsGUI::deleteField | ( | ) |
Definition at line 569 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilUDFPermissionHelper\ACTION_FIELD_DELETE, ilUDFPermissionHelper\CONTEXT_FIELD, getPermissions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilCustomUserFieldsGUI::edit | ( | $a_form = null | ) |
Edit field.
ilPropertyFormGUI | $a_form |
Definition at line 418 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 113 of file class.ilCustomUserFieldsGUI.php.
References $lng.
Referenced by initForm(), and validateForm().
|
static |
Definition at line 132 of file class.ilCustomUserFieldsGUI.php.
References 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(), initForm(), updateFields(), and validateForm().
|
protected |
Definition at line 43 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 154 of file class.ilCustomUserFieldsGUI.php.
References $ilCtrl, $lng, ilMemberAgreement\_hasAgreements(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, ilUDFPermissionHelper\CONTEXT_FIELD, getAccessOptions(), getAccessPermissions(), ilUtil\sendInfo(), ilFormPropertyGUI\setDisabled(), 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 71 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 430 of file class.ilCustomUserFieldsGUI.php.
References $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, 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 606 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $field_id, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\CONTEXT_FIELD, getAccessPermissions(), 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 308 of file class.ilCustomUserFieldsGUI.php.
References $lng, $valid, ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, getAccessOptions(), getAccessPermissions(), 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().