ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilObjUserGUI. More...
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. | |
editOldObject () | |
display user edit 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) | |
__showRolesTable ($a_result_set, $a_role_ids=NULL) | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $from="") | |
standard implementation for tables use 'from' variable use different initial setting of table | |
__unsetSessionVariables () | |
__buildFilterSelect () | |
hitsperpageObject () | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
showUpperIcon () | |
__sendProfileMail () | |
_goto ($a_target) | |
Goto user profile screen. | |
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. |
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. | |
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= '') | |
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. |
Additional Inherited Members | |
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. |
Class ilObjUserGUI.
ilObjUserGUI: ilLearningProgressGUI, ilObjectOwnershipManagementGUI
Definition at line 18 of file class.ilObjUserGUI.php.
ilObjUserGUI::__buildFilterSelect | ( | ) |
Definition at line 3477 of file class.ilObjUserGUI.php.
References $_SESSION, and ilUtil\formSelect().
Referenced by roleassignmentObject().
ilObjUserGUI::__checkUserDefinedRequiredFields | ( | ) |
display user create form
Definition at line 209 of file class.ilObjUserGUI.php.
References $_POST, and ilUserDefinedFields\_getInstance().
Referenced by updateObjectOld().
ilObjUserGUI::__getDateSelect | ( | $a_type, | |
$a_varname, | |||
$a_selected | |||
) |
Definition at line 3330 of file class.ilObjUserGUI.php.
References ilUtil\formSelect().
Referenced by editOldObject().
& ilObjUserGUI::__initTableGUI | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3447 of file class.ilObjUserGUI.php.
Referenced by __showRolesTable().
ilObjUserGUI::__sendProfileMail | ( | ) |
Definition at line 3542 of file class.ilObjUserGUI.php.
References $_POST, ilObjectGUI\$ilias, $ilUser, and ilLanguage\loadLanguageModule().
Referenced by updateObject(), and updateObjectOld().
ilObjUserGUI::__setTableGUIBasicData | ( | & | $tbl, |
& | $result_set, | ||
$a_from = "" |
|||
) |
standard implementation for tables use 'from' variable use different initial setting of table
Reimplemented from ilObjectGUI.
Definition at line 3454 of file class.ilObjUserGUI.php.
References $_GET.
Referenced by __showRolesTable().
ilObjUserGUI::__showRolesTable | ( | $a_result_set, | |
$a_role_ids = NULL |
|||
) |
Definition at line 3390 of file class.ilObjUserGUI.php.
References ilObjectGUI\$actions, ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilUtil\array_php2js(), and ilUtil\getImagePath().
Referenced by roleassignmentObject().
ilObjUserGUI::__showUserDefinedFields | ( | ) |
Definition at line 225 of file class.ilObjUserGUI.php.
References $_SESSION, ilUserDefinedFields\_getInstance(), ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
Referenced by editOldObject().
ilObjUserGUI::__toUnix | ( | $a_time_arr | ) |
Definition at line 3380 of file class.ilObjUserGUI.php.
Referenced by editOldObject(), and updateObjectOld().
ilObjUserGUI::__unsetSessionVariables | ( | ) |
Definition at line 3472 of file class.ilObjUserGUI.php.
References $_SESSION.
ilObjUserGUI::_goto | ( | $a_target | ) |
Goto user profile screen.
Definition at line 3607 of file class.ilObjUserGUI.php.
References $_GET, $ilCtrl, $ilUser, ilObjUser\_lookupId(), exit, and ilUtil\stripSlashes().
ilObjUserGUI::addAdminLocatorItems | ( | ) |
should be overwritten to add object specific items (repository items are preloaded)
Definition at line 3499 of file class.ilObjUserGUI.php.
References $_GET, ilFrameTargetInfo\_getFrame(), ilObject\_lookupObjId(), and USER_FOLDER_ID.
ilObjUserGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 3309 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::assignSaveObject | ( | ) |
assign users to role
public
Definition at line 3070 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjUserGUI::cancelObject | ( | ) |
Definition at line 125 of file class.ilObjUserGUI.php.
References $_GET, and ilSession\clear().
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().
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().
ilObjUserGUI::editOldObject | ( | ) |
display user edit form
public
Definition at line 1802 of file class.ilObjUserGUI.php.
References $_SESSION, ilObjectGUI\$data, $gender, ilObjectGUI\$ilias, $ilSetting, $ilUser, $path, __getDateSelect(), __showUserDefinedFields(), __toUnix(), ilAuthUtils\_allowPasswordModificationByAuthMode(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_getAuthMode(), ilAuthUtils\_getAuthModeName(), ilAuthUtils\_isExternalAccountEnabled(), ilObjStyleSettings\_lookupActivatedStyle(), ilObjUser\_lookupLogin(), ilUtil\formCheckbox(), ilObjectGUI\getTargetFrame(), ilUtil\getUsersOnline(), ilUtil\getWebspaceDir(), ilUtil\prepareFormOutput(), and USER_FOLDER_ID.
& 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.
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().
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().
ilObjUserGUI::getValues | ( | ) |
Get values from user object and put them into form.
Definition at line 952 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().
|
protected |
Handles ignored required fields by changing the required flag of form elements.
protected
Definition at line 3645 of file class.ilObjUserGUI.php.
References ilUserDefinedFields\_getInstance(), and ilUserProfile\getIgnorableRequiredSettings().
Referenced by saveObject(), and updateObject().
ilObjUserGUI::hitsperpageObject | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3489 of file class.ilObjUserGUI.php.
References roleassignmentObject().
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().
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().
ilObjUserGUI::initForm | ( | $a_mode | ) |
Init user form.
Definition at line 1077 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(), 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().
|
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 1776 of file class.ilObjUserGUI.php.
References $ilSetting, and USER_FOLDER_ID.
Referenced by initForm(), loadValuesFromForm(), saveObject(), and updateObject().
|
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().
ilObjUserGUI::removeUserPictureObject | ( | ) |
remove user image
Definition at line 2537 of file class.ilObjUserGUI.php.
References $file, editObject(), ilUtil\getWebspaceDir(), and ilUtil\sendSuccess().
ilObjUserGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 3321 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::roleassignmentObject | ( | ) |
display roleassignment panel
public
Definition at line 3137 of file class.ilObjUserGUI.php.
References $_POST, $_SESSION, $ilUser, ilObjectGUI\$obj_id, $path, $records, ilObjectGUI\$ref_id, $tab, __buildFilterSelect(), __showRolesTable(), ilObject\_getAllReferences(), ilSecuritySettings\_getInstance(), ilObjRole\_getTranslation(), ilObject\_lookupType(), and ilRbacReview\getObjectOfRole().
Referenced by applyFilterObject(), hitsperpageObject(), and resetFilterObject().
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().
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().
ilObjUserGUI::showUpperIcon | ( | ) |
Definition at line 3538 of file class.ilObjUserGUI.php.
ilObjUserGUI::updateObject | ( | ) |
Update user.
Reimplemented from ilObjectGUI.
Definition at line 765 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.
ilObjUserGUI::updateObjectOld | ( | ) |
save user data public
Does input checks and updates a user account if everything is fine. public
Definition at line 2812 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.
ilObjUserGUI::uploadUserPictureObject | ( | ) |
upload user image
(original method by ratana ty)
Definition at line 2450 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().
ilObjUserGUI::$gender |
Definition at line 27 of file class.ilObjUserGUI.php.
Referenced by editOldObject().
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.