ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
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 () | |
initFieldDefinition () | |
init field definition More... | |
initForm ($a_mode='create') | |
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 $DIC, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), and ilClaimingPermissionHelper\getInstance().
ilCustomUserFieldsGUI::addField | ( | $a_form = null | ) |
Add field.
ilPropertyFormGUI | $a_form |
Definition at line 106 of file class.ilCustomUserFieldsGUI.php.
References $DIC, $tpl, and initForm().
Referenced by create().
ilCustomUserFieldsGUI::askDeleteField | ( | ) |
Definition at line 586 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $DIC, $id, $ilCtrl, $lng, $tpl, ilUserDefinedFields\_getInstance(), listUserDefinedFields(), and ilUtil\sendFailure().
ilCustomUserFieldsGUI::create | ( | ) |
Definition at line 409 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $DIC, $form, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), addField(), ilCustomUserFieldsHelper\getInstance(), initForm(), and validateForm().
ilCustomUserFieldsGUI::deleteField | ( | ) |
Definition at line 617 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $DIC, $id, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilUDFPermissionHelper\ACTION_FIELD_DELETE, ilUDFPermissionHelper\CONTEXT_FIELD, getPermissions(), and ilUtil\sendFailure().
ilCustomUserFieldsGUI::edit | ( | $a_form = null | ) |
Edit field.
ilPropertyFormGUI | $a_form |
Definition at line 461 of file class.ilCustomUserFieldsGUI.php.
References $DIC, $tpl, and initForm().
Referenced by update().
ilCustomUserFieldsGUI::executeCommand | ( | ) |
Definition at line 50 of file class.ilCustomUserFieldsGUI.php.
ilCustomUserFieldsGUI::getAccessOptions | ( | ) |
Get all access options, order is kept in forms.
Definition at line 124 of file class.ilCustomUserFieldsGUI.php.
Referenced by initForm(), and validateForm().
|
static |
Definition at line 145 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().
|
protected |
Definition at line 45 of file class.ilCustomUserFieldsGUI.php.
References $permissions.
Referenced by deleteField(), and listUserDefinedFields().
|
protected |
init field definition
Definition at line 166 of file class.ilCustomUserFieldsGUI.php.
References $DIC, $ilCtrl, $lng, ilMemberAgreement\_hasAgreements(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, ilUDFPermissionHelper\CONTEXT_FIELD, ilUtil\sendInfo(), 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, and ilUDFPermissionHelper\SUBACTION_FIELD_TITLE.
Referenced by initForm().
|
protected |
Definition at line 217 of file class.ilCustomUserFieldsGUI.php.
References $form, $id, $ilCtrl, $lng, $name, ilMemberAgreement\_hasAgreements(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, getAccessOptions(), ilCustomUserFieldsHelper\getInstance(), initFieldDefinition(), ilUtil\sendInfo(), ilFormPropertyGUI\setRequired(), 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 73 of file class.ilCustomUserFieldsGUI.php.
References $_GET, $DIC, $ilCtrl, $lng, $tab, $tpl, ilUDFPermissionHelper\ACTION_UDF_CREATE_FIELD, ilUDFPermissionHelper\CONTEXT_UDF, and getPermissions().
Referenced by askDeleteField(), and updateFields().
ilCustomUserFieldsGUI::update | ( | ) |
Definition at line 474 of file class.ilCustomUserFieldsGUI.php.
References $DIC, $form, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilMemberAgreement\_reset(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, ilUDFPermissionHelper\CONTEXT_FIELD, ilUserDefinedData\deleteFieldValue(), edit(), ilCustomUserFieldsHelper\getInstance(), initForm(), 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 654 of file class.ilCustomUserFieldsGUI.php.
References $_POST, $DIC, $field_id, $ilCtrl, $lng, ilUserDefinedFields\_getInstance(), ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\CONTEXT_FIELD, listUserDefinedFields(), ilUtil\sendFailure(), 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 351 of file class.ilCustomUserFieldsGUI.php.
References $DIC, $form, $id, $lng, $valid, ilUDFPermissionHelper\ACTION_FIELD_EDIT_ACCESS, ilUDFPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, 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().