|
ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilObjUserGUI. More...
Inheritance diagram for ilObjUserGUI:
Collaboration diagram for ilObjUserGUI:Public Member Functions | |
| ilObjUserGUI ($a_data, $a_id, $a_call_by_reference=false, $a_prepare_output=true) | |
| Constructor public. | |
| & | executeCommand () |
| execute command | |
| setTitleAndDescription () | |
| called by prepare output | |
| cancelObject () | |
| getAdminTabs (&$tabs_gui) | |
| admin and normal tabs are equal for roles | |
| getTabs (&$tabs_gui) | |
| get tabs | |
| setBackTarget ($a_text, $a_link) | |
| set back tab target | |
| __checkUserDefinedRequiredFields () | |
| display user create form | |
| __showUserDefinedFields () | |
| initCreate () | |
| createObject () | |
| Display user create form. | |
| saveObject () | |
| save user data public | |
| editObject () | |
| Display user edit form. | |
| updateObject () | |
| Update user. | |
| getValues () | |
| Get values from user object and put them into form. | |
| initForm ($a_mode) | |
| Init user form. | |
| uploadUserPictureObject () | |
| upload user image | |
| removeUserPictureObject () | |
| remove user image | |
| updateObjectOld () | |
| save user data public | |
| assignSaveObject () | |
| assign users to role | |
| roleassignmentObject () | |
| display roleassignment panel | |
| applyFilterObject () | |
| Apply filter. | |
| resetFilterObject () | |
| Reset filter. | |
| __getDateSelect ($a_type, $a_varname, $a_selected) | |
| __toUnix ($a_time_arr) | |
| __unsetSessionVariables () | |
| __buildFilterSelect () | |
| hitsperpageObject () | |
| addAdminLocatorItems () | |
| should be overwritten to add object specific items (repository items are preloaded) | |
| showUpperIcon () | |
| __sendProfileMail () | |
Public Member Functions inherited from ilObjectGUI | |
| ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
| Constructor public. | |
| withReferences () | |
| determines wether objects are referenced or not (got ref ids or not) | |
| setCreationMode ($a_mode=true) | |
| if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui | |
| getCreationMode () | |
| get creation mode | |
| getHTML () | |
| confirmedDeleteObject () | |
| confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
| cancelDeleteObject () | |
| cancel deletion of object | |
| cancelObject ($in_rep=false) | |
| cancel action and go back to previous page public | |
| cancelCreation () | |
| cancel create action and go back to repository parent | |
| getFormAction ($a_cmd, $a_formaction="") | |
| get form action for command (command is method name without "Object", e.g. | |
| isVisible ($a_ref_id, $a_type) | |
| viewObject () | |
| list childs of current object | |
| deleteObject ($a_error=false) | |
| Display deletion confirmation screen. | |
| cloneAllObject () | |
| Clone single (not container object) Method is overwritten in ilContainerGUI. | |
Static Public Member Functions | |
| static | _goto ($a_target) |
| Goto user profile screen. | |
Static Public Member Functions inherited from ilObjectGUI | |
| static | _gotoRepositoryRoot ($a_raise_error=false) |
| Goto repository root. | |
| static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
| Goto repository root. | |
Data Fields | |
| $ilCtrl | |
| $gender | |
| $type | |
| $user_ref_id | |
Data Fields inherited from ilObjectGUI | |
| const | COPY_WIZARD_NEEDS_PAGE = 1 |
| $ilias | |
| $objDefinition | |
| $tpl | |
| $tree | |
| $lng | |
| $data | |
| $object | |
| $ref_id | |
| $obj_id | |
| $maxcount | |
| $formaction | |
| $return_location | |
| $target_frame | |
| $tab_target_script | |
| $actions | |
| $sub_objects | |
| $omit_locator = false | |
| const | CFORM_NEW = 1 |
| const | CFORM_IMPORT = 2 |
| const | CFORM_CLONE = 3 |
Protected Member Functions | |
| loadValuesFromForm ($a_mode= 'create') | |
| isSettingChangeable ($a_field) | |
| Check if setting is visible This is the case when called from user folder. | |
| handleIgnoredRequiredFields () | |
| Handles ignored required fields by changing the required flag of form elements. | |
Protected Member Functions inherited from ilObjectGUI | |
| assignObject () | |
| prepareOutput () | |
| prepare output | |
| initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
| Add header action menu. | |
| insertHeaderAction ($a_list_gui) | |
| Insert header action into main template. | |
| addHeaderAction () | |
| Add header action menu. | |
| redrawHeaderActionObject () | |
| Ajax call: redraw action header only. | |
| showMountWebfolderIcon () | |
| setTabs () | |
| set admin tabs public | |
| setAdminTabs () | |
| set admin tabs public | |
| setLocator () | |
| set Locator | |
| addLocatorItems () | |
| should be overwritten to add object specific items (repository items are preloaded) | |
| omitLocator ($a_omit=true) | |
| addAdminLocatorItems ($a_do_not_add_object=false) | |
| should be overwritten to add object specific items (repository items are preloaded) | |
| initCreationForms ($a_new_type) | |
| Init creation froms. | |
| getCreationFormsHTML (array $a_forms) | |
| Get HTML for creation forms (accordion) | |
| initCreateForm ($a_new_type) | |
| Init object creation form. | |
| initDidacticTemplate (ilPropertyFormGUI $form) | |
| Show didactic template types. | |
| addDidacticTemplateOptions (array &$a_options) | |
| Add custom templates. | |
| getDidacticTemplateVar ($a_type) | |
| Get didactic template setting from creation screen. | |
| putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
| Add object to tree at given position. | |
| afterSave (ilObject $a_new_object) | |
| Post (successful) object creation hook. | |
| initEditForm () | |
| Init object edit form. | |
| initEditCustomForm (ilPropertyFormGUI $a_form) | |
| Add custom fields to update form. | |
| getEditFormValues () | |
| Get values for edit form. | |
| getEditFormCustomValues (array &$a_values) | |
| Add values to custom edit fields. | |
| validateCustom (ilPropertyFormGUI $a_form) | |
| Validate custom values (if not possible with checkInput()) | |
| updateCustom (ilPropertyFormGUI $a_form) | |
| Insert custom update form values into object. | |
| afterUpdate () | |
| Post (successful) object update hook. | |
| initImportForm ($a_new_type) | |
| Init object import form. | |
| importFileObject ($parent_id=null) | |
| Import. | |
| afterImport (ilObject $a_new_object) | |
| Post (successful) object import hook. | |
| setFormAction ($a_cmd, $a_formaction) | |
| set specific form action for command | |
| getReturnLocation ($a_cmd, $a_location="") | |
| get return location for command (command is method name without "Object", e.g. | |
| setReturnLocation ($a_cmd, $a_location) | |
| set specific return location for command | |
| getTargetFrame ($a_cmd, $a_target_frame="") | |
| get target frame for command (command is method name without "Object", e.g. | |
| setTargetFrame ($a_cmd, $a_target_frame) | |
| set specific target frame for command | |
| showPossibleSubObjects () | |
| show possible subobjects (pulldown menu) | |
| getTemplateFile ($a_cmd, $a_type="") | |
| get a template blockfile format: tpl. | |
| getTitlesByRefId ($a_ref_ids) | |
| get Titles of objects this method is used for error messages in methods cut/copy/paste | |
| __showButton ($a_cmd, $a_text, $a_target= '') | |
| & | __initTableGUI () |
| __setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
| standard implementation for tables use 'from' variable use different initial setting of table | |
| redirectToRefId ($a_ref_id, $a_cmd="") | |
| redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value | |
| fillCloneTemplate ($a_tpl_varname, $a_type) | |
| Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. | |
| getCenterColumnHTML () | |
| Get center column. | |
| getRightColumnHTML () | |
| Display right column. | |
| setColumnSettings ($column_gui) | |
| May be overwritten in subclasses. | |
| checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
| Check permission and redirect on error. | |
| checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
| Check permission. | |
| enableDragDropFileUpload () | |
| Enables the file upload into this object by dropping files. | |
| handleAutoRating (ilObject $a_new_obj) | |
| Activate rating automatically if parent container setting. | |
Class ilObjUserGUI.
ilObjUserGUI: ilLearningProgressGUI, ilObjectOwnershipManagementGUI
Definition at line 18 of file class.ilObjUserGUI.php.
| ilObjUserGUI::__buildFilterSelect | ( | ) |
Definition at line 2792 of file class.ilObjUserGUI.php.
References $_SESSION, and ilUtil\formSelect().
Referenced by roleassignmentObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::__checkUserDefinedRequiredFields | ( | ) |
display user create form
Definition at line 209 of file class.ilObjUserGUI.php.
References $_POST, and ilUserDefinedFields\_getInstance().
Referenced by updateObjectOld().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::__getDateSelect | ( | $a_type, | |
| $a_varname, | |||
| $a_selected | |||
| ) |
Definition at line 2724 of file class.ilObjUserGUI.php.
References ilUtil\formSelect().
Here is the call graph for this function:| ilObjUserGUI::__sendProfileMail | ( | ) |
Definition at line 2857 of file class.ilObjUserGUI.php.
References $_POST, ilObjectGUI\$ilias, $ilUser, and ilLanguage\loadLanguageModule().
Referenced by updateObject(), and updateObjectOld().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::__showUserDefinedFields | ( | ) |
Definition at line 225 of file class.ilObjUserGUI.php.
References $_SESSION, ilUserDefinedFields\_getInstance(), ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
Here is the call graph for this function:| ilObjUserGUI::__toUnix | ( | $a_time_arr | ) |
Definition at line 2774 of file class.ilObjUserGUI.php.
Referenced by updateObjectOld().
Here is the caller graph for this function:| ilObjUserGUI::__unsetSessionVariables | ( | ) |
Definition at line 2787 of file class.ilObjUserGUI.php.
References $_SESSION.
|
static |
Goto user profile screen.
Definition at line 2922 of file class.ilObjUserGUI.php.
References $_GET, $ilCtrl, $ilUser, ilObjUser\_lookupId(), exit, and ilUtil\stripSlashes().
Here is the call graph for this function:| ilObjUserGUI::addAdminLocatorItems | ( | ) |
should be overwritten to add object specific items (repository items are preloaded)
Definition at line 2814 of file class.ilObjUserGUI.php.
References $_GET, ilFrameTargetInfo\_getFrame(), ilObject\_lookupObjId(), and USER_FOLDER_ID.
Here is the call graph for this function:| ilObjUserGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 2703 of file class.ilObjUserGUI.php.
References roleassignmentObject().
Here is the call graph for this function:| ilObjUserGUI::assignSaveObject | ( | ) |
assign users to role
public
Definition at line 2466 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilObjUserGUI::cancelObject | ( | ) |
Definition at line 125 of file class.ilObjUserGUI.php.
References $_GET, and ilSession\clear().
Here is the call graph for this function:| ilObjUserGUI::createObject | ( | ) |
Display user create form.
Reimplemented from ilObjectGUI.
Definition at line 344 of file class.ilObjUserGUI.php.
References $ilUser, ilObjectGUI\$tpl, initCreate(), and initForm().
Here is the call graph for this function:| ilObjUserGUI::editObject | ( | ) |
Display user edit form.
public
Reimplemented from ilObjectGUI.
Definition at line 538 of file class.ilObjUserGUI.php.
References $ilCtrl, ilObjectGUI\$ilias, $ilSetting, $ilUser, getValues(), initForm(), and USER_FOLDER_ID.
Referenced by removeUserPictureObject(), and updateObjectOld().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjUserGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 71 of file class.ilObjUserGUI.php.
References $cmd, ilLearningProgressBaseGUI\LP_CONTEXT_USER_FOLDER, ilObjectGUI\prepareOutput(), and USER_FOLDER_ID.
Here is the call graph for this function:| ilObjUserGUI::getAdminTabs | ( | & | $tabs_gui | ) |
admin and normal tabs are equal for roles
Reimplemented from ilObjectGUI.
Definition at line 144 of file class.ilObjUserGUI.php.
References getTabs().
Here is the call graph for this function:| ilObjUserGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Reimplemented from ilObjectGUI.
Definition at line 152 of file class.ilObjUserGUI.php.
References $_GET, $_SESSION, ilObjUserTracking\_enabledLearningProgress(), and ilObjUserTracking\_enabledUserRelatedData().
Referenced by getAdminTabs().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::getValues | ( | ) |
Get values from user object and put them into form.
Definition at line 958 of file class.ilObjUserGUI.php.
References ilObjectGUI\$data, $ilSetting, $ilUser, ilUserDefinedFields\_getInstance(), ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilObjUser\_lookupLogin(), ilFormat\formatDate(), ilDateTime\get(), IL_CAL_FKT_DATE, and IL_CAL_UNIX.
Referenced by editObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Handles ignored required fields by changing the required flag of form elements.
protected
Definition at line 2960 of file class.ilObjUserGUI.php.
References ilUserDefinedFields\_getInstance(), and ilUserProfile\getIgnorableRequiredSettings().
Referenced by saveObject(), and updateObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::hitsperpageObject | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 2804 of file class.ilObjUserGUI.php.
References roleassignmentObject().
Here is the call graph for this function:| ilObjUserGUI::ilObjUserGUI | ( | $a_data, | |
| $a_id, | |||
$a_call_by_reference = false, |
|||
$a_prepare_output = true |
|||
| ) |
Constructor public.
Definition at line 47 of file class.ilObjUserGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$ref_id, and ilObjectGUI\ilObjectGUI().
Here is the call graph for this function:| ilObjUserGUI::initCreate | ( | ) |
Definition at line 273 of file class.ilObjUserGUI.php.
References $ilUser, ilObjectGUI\$tpl, ilObjRole\_getAssignUsersStatus(), and USER_FOLDER_ID.
Referenced by createObject(), and saveObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::initForm | ( | $a_mode | ) |
Init user form.
Definition at line 1088 of file class.ilObjUserGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lang, ilObjectGUI\$lng, $options, ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_getAuthModeName(), ilUserDefinedFields\_getInstance(), ilObjUser\_getLastHistoryDataByUserId(), ilObjUser\_getPersonalPicturePath(), ilDiskQuotaActivationChecker\_isActive(), ilAuthUtils\_isExternalAccountEnabled(), ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilObjStyleSettings\_lookupActivatedStyle(), ilDiskQuotaChecker\_lookupDiskQuota(), ilDiskQuotaChecker\_lookupDiskUsage(), ilDiskQuotaChecker\_lookupPersonalWorkspaceDiskQuota(), ilDatePresentation\formatDate(), ilFormat\formatSize(), ilDiskQuotaHandler\getFilesizeByOwner(), ilDiskQuotaHandler\getFilesizeByTypeAndOwner(), ilUtil\getPasswordRequirementsInfo(), IL_CAL_DATETIME, IL_CAL_UNIX, isSettingChangeable(), ilCheckboxInputGUI\setChecked(), ilImageFileInputGUI\setImage(), ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setMulti(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilDateTimeInputGUI\setShowTime(), ilPasswordInputGUI\setSize(), ilTextInputGUI\setSize(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\setValue(), UDF_TYPE_TEXT, UDF_TYPE_WYSIWYG, and USER_FOLDER_ID.
Referenced by createObject(), editObject(), saveObject(), and updateObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check if setting is visible This is the case when called from user folder.
Otherwise (category local user account depend on a setting)
| array | $settings | |
| string | $a_field |
Definition at line 1818 of file class.ilObjUserGUI.php.
References $ilSetting, and USER_FOLDER_ID.
Referenced by initForm(), loadValuesFromForm(), saveObject(), and updateObject().
Here is the caller graph for this function:
|
protected |
| object | $a_mode | [optional] |
Definition at line 580 of file class.ilObjUserGUI.php.
References $_POST, $ilSetting, $ilUser, ilObjectGUI\$object, IL_CAL_DATETIME, IL_CAL_UNIX, and isSettingChangeable().
Referenced by saveObject(), and updateObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::removeUserPictureObject | ( | ) |
remove user image
Definition at line 1933 of file class.ilObjUserGUI.php.
References $file, editObject(), ilUtil\getWebspaceDir(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilObjUserGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 2715 of file class.ilObjUserGUI.php.
References roleassignmentObject().
Here is the call graph for this function:| ilObjUserGUI::roleassignmentObject | ( | ) |
display roleassignment panel
public
Definition at line 2533 of file class.ilObjUserGUI.php.
References $_POST, $_SESSION, $ilUser, ilObjectGUI\$obj_id, $path, $records, ilObjectGUI\$ref_id, $tab, __buildFilterSelect(), ilObject\_getAllReferences(), ilSecuritySettings\_getInstance(), ilObjRole\_getTranslation(), ilObject\_lookupType(), and ilRbacReview\getObjectOfRole().
Referenced by applyFilterObject(), hitsperpageObject(), and resetFilterObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::saveObject | ( | ) |
save user data public
Reimplemented from ilObjectGUI.
Definition at line 363 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $ilSetting, $ilUser, ilObjectGUI\$tpl, ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilAuthUtils\_isExternalAccountEnabled(), handleIgnoredRequiredFields(), IL_PASSWD_PLAIN, initCreate(), initForm(), ilUserProfile\isProfileIncomplete(), isSettingChangeable(), loadValuesFromForm(), ilUtil\sendInfo(), ilUtil\sendSuccess(), and uploadUserPictureObject().
Here is the call graph for this function:| ilObjUserGUI::setBackTarget | ( | $a_text, | |
| $a_link | |||
| ) |
set back tab target
Definition at line 199 of file class.ilObjUserGUI.php.
| ilObjUserGUI::setTitleAndDescription | ( | ) |
called by prepare output
Reimplemented from ilObjectGUI.
Definition at line 109 of file class.ilObjUserGUI.php.
References ilUtil\getImagePath().
Here is the call graph for this function:| ilObjUserGUI::showUpperIcon | ( | ) |
Definition at line 2853 of file class.ilObjUserGUI.php.
| ilObjUserGUI::updateObject | ( | ) |
Update user.
Reimplemented from ilObjectGUI.
Definition at line 771 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilObjectGUI\$ilias, $ilSetting, $ilUser, ilObjectGUI\$tpl, __sendProfileMail(), ilAuthUtils\_allowPasswordModificationByAuthMode(), ilAuthUtils\_getAuthMode(), ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilObjUser\_resetLoginAttempts(), handleIgnoredRequiredFields(), IL_PASSWD_PLAIN, initForm(), ilUserProfile\isProfileIncomplete(), isSettingChangeable(), loadValuesFromForm(), ilUtil\sendFailure(), ilUtil\sendSuccess(), uploadUserPictureObject(), and USER_FOLDER_ID.
Here is the call graph for this function:| ilObjUserGUI::updateObjectOld | ( | ) |
save user data public
Does input checks and updates a user account if everything is fine. public
Definition at line 2208 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $_SESSION, ilObjectGUI\$ilias, $ilUser, ilObjectGUI\$tpl, __checkUserDefinedRequiredFields(), __sendProfileMail(), __toUnix(), ilAuthUtils\_allowPasswordModificationByAuthMode(), ilObjUser\_checkExternalAuthAccount(), ilAuthUtils\_getAuthMode(), ilObjUser\_loginExists(), ilAuthUtils\_needsExternalAccountByAuthMode(), editObject(), IL_PASSWD_PLAIN, ilUtil\is_email(), ilUtil\isLogin(), ilUtil\isPassword(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and USER_FOLDER_ID.
Here is the call graph for this function:| ilObjUserGUI::uploadUserPictureObject | ( | ) |
upload user image
(original method by ratana ty)
Definition at line 1846 of file class.ilObjUserGUI.php.
References $ilUser, ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), ilUtil\isConvertVersionAtLeast(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), and USER_FOLDER_ID.
Referenced by saveObject(), and updateObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjUserGUI::$gender |
Definition at line 27 of file class.ilObjUserGUI.php.
| ilObjUserGUI::$ilCtrl |
Definition at line 20 of file class.ilObjUserGUI.php.
Referenced by _goto(), editObject(), ilObjUserGUI(), and initForm().
| ilObjUserGUI::$type |
Definition at line 34 of file class.ilObjUserGUI.php.
| ilObjUserGUI::$user_ref_id |
Definition at line 41 of file class.ilObjUserGUI.php.