ILIAS
Release_4_0_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 () | |
undeleteObject () | |
Get objects back from trash. | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
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. | |
trashObject () | |
Show trash content of object. | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from ilObjectGUI | |
assignObject () | |
prepareOutput () | |
prepare output | |
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) | |
displayEditForm ($fields) | |
display edit form (usually called by editObject) | |
afterUpdate () | |
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) | |
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= '') | |
__showClipboardTable ($a_result_set, $a_from="") | |
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. | |
fillCloneSearchTemplate ($a_tpl_varname, $a_type) | |
Add an object search in case the number of existing objects is too big to offer a selection list. | |
searchCloneSourceObject () | |
Search clone source by title. | |
buildCloneSelect ($existing_objs) | |
Build a select box for clonable objects (permission write) | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") |
Class ilObjUserGUI.
ilObjUserGUI: ilLearningProgressGUI, ilObjiLincUserGUI
Definition at line 17 of file class.ilObjUserGUI.php.
ilObjUserGUI::__buildFilterSelect | ( | ) |
Definition at line 3519 of file class.ilObjUserGUI.php.
References $_SESSION, and formSelect().
Referenced by roleassignmentObject().
ilObjUserGUI::__checkUserDefinedRequiredFields | ( | ) |
display user create form
Definition at line 706 of file class.ilObjUserGUI.php.
References $_POST, and ilUserDefinedFields\_getInstance().
Referenced by updateObjectOld().
ilObjUserGUI::__getDateSelect | ( | $a_type, | |
$a_varname, | |||
$a_selected | |||
) |
Definition at line 3372 of file class.ilObjUserGUI.php.
References $start, and formSelect().
Referenced by editOldObject().
& ilObjUserGUI::__initTableGUI | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3489 of file class.ilObjUserGUI.php.
Referenced by __showRolesTable().
ilObjUserGUI::__sendProfileMail | ( | ) |
Definition at line 3598 of file class.ilObjUserGUI.php.
References $_POST, ilObjectGUI\$ilias, 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 3496 of file class.ilObjUserGUI.php.
References $_GET.
Referenced by __showRolesTable().
ilObjUserGUI::__showRolesTable | ( | $a_result_set, | |
$a_role_ids = NULL |
|||
) |
Definition at line 3432 of file class.ilObjUserGUI.php.
References ilObjectGUI\$actions, $name, ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilUtil\array_php2js(), and ilUtil\getImagePath().
Referenced by roleassignmentObject().
ilObjUserGUI::__showUserDefinedFields | ( | ) |
Definition at line 722 of file class.ilObjUserGUI.php.
References $_SESSION, $name, ilUserDefinedFields\_getInstance(), ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
Referenced by editOldObject().
ilObjUserGUI::__toUnix | ( | $a_time_arr | ) |
Definition at line 3422 of file class.ilObjUserGUI.php.
Referenced by editOldObject(), and updateObjectOld().
ilObjUserGUI::__unsetSessionVariables | ( | ) |
Definition at line 3514 of file class.ilObjUserGUI.php.
References $_SESSION.
ilObjUserGUI::_goto | ( | $a_target | ) |
Goto user profile screen.
Definition at line 3663 of file class.ilObjUserGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, and exit.
ilObjUserGUI::addAdminLocatorItems | ( | ) |
should be overwritten to add object specific items (repository items are preloaded)
Reimplemented from ilObjectGUI.
Definition at line 3541 of file class.ilObjUserGUI.php.
References $_GET, ilFrameTargetInfo\_getFrame(), ilObject\_lookupObjId(), elseif(), and USER_FOLDER_ID.
ilObjUserGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 3351 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::assignSaveObject | ( | ) |
assign users to role
public
Definition at line 3122 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjUserGUI::cancelObject | ( | ) |
Definition at line 124 of file class.ilObjUserGUI.php.
References $_GET.
ilObjUserGUI::createObject | ( | ) |
Display user create form.
Reimplemented from ilObjectGUI.
Definition at line 841 of file class.ilObjUserGUI.php.
References ilObjectGUI\$tpl, initCreate(), and initForm().
ilObjUserGUI::editObject | ( | ) |
Display user edit form.
public
Reimplemented from ilObjectGUI.
Definition at line 1026 of file class.ilObjUserGUI.php.
References $ilCtrl, ilObjectGUI\$ilias, $ilSetting, getValues(), initForm(), and USER_FOLDER_ID.
Referenced by removeUserPictureObject(), and updateObjectOld().
ilObjUserGUI::editOldObject | ( | ) |
display user edit form
public
Definition at line 1866 of file class.ilObjUserGUI.php.
References $_SESSION, ilObjectGUI\$data, $gender, ilObjectGUI\$ilias, $ilSetting, $key, $name, __getDateSelect(), __showUserDefinedFields(), __toUnix(), ilAuthUtils\_allowPasswordModificationByAuthMode(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_getAuthMode(), ilAuthUtils\_getAuthModeName(), ilAuthUtils\_isExternalAccountEnabled(), ilObjStyleSettings\_lookupActivatedStyle(), ilObjUser\_lookupLogin(), ilUtil\formCheckbox(), ilObjectGUI\getTargetFrame(), ilObjectGUI\getTemplateFile(), ilUtil\getUsersOnline(), ilUtil\getWebspaceDir(), ilUtil\prepareFormOutput(), and USER_FOLDER_ID.
& ilObjUserGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 69 of file class.ilObjUserGUI.php.
References $cmd, LP_MODE_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 143 of file class.ilObjUserGUI.php.
References getTabs().
ilObjUserGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Reimplemented from ilObjectGUI.
Definition at line 151 of file class.ilObjUserGUI.php.
References $_GET, $_SESSION, and ilObjUserTracking\_enabledLearningProgress().
Referenced by getAdminTabs().
ilObjUserGUI::getValues | ( | ) |
Get values from user object and put them into form.
Definition at line 1239 of file class.ilObjUserGUI.php.
References ilObjectGUI\$data, $ilSetting, ilUserDefinedFields\_getInstance(), ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilObjUser\_lookupLogin(), ilFormat\formatDate(), ilDateTime\get(), IL_CAL_FKT_DATE, and IL_CAL_UNIX.
Referenced by editObject().
ilObjUserGUI::hitsperpageObject | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3531 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 46 of file class.ilObjUserGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$ref_id, and ilObjectGUI\ilObjectGUI().
ilObjUserGUI::initCreate | ( | ) |
Definition at line 770 of file class.ilObjUserGUI.php.
References $key, ilObjectGUI\$tpl, ilObjRole\_getAssignUsersStatus(), and USER_FOLDER_ID.
Referenced by createObject(), and saveObject().
ilObjUserGUI::initForm | ( | $a_mode | ) |
Init user form.
Definition at line 1359 of file class.ilObjUserGUI.php.
References $ilCtrl, $ilSetting, $l, $lang, ilObjectGUI\$lng, $name, ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_getAuthModeName(), ilUserDefinedFields\_getInstance(), ilObjUser\_getLastHistoryDataByUserId(), ilObjUser\_getPersonalPicturePath(), ilDiskQuotaActivationChecker\_isActive(), ilAuthUtils\_isExternalAccountEnabled(), ilObjStyleSettings\_lookupActivatedStyle(), ilDiskQuotaChecker\_lookupDiskQuota(), ilDiskQuotaChecker\_lookupDiskUsage(), ilDatePresentation\formatDate(), ilFormat\formatDate(), ilFormat\formatSize(), ilUtil\getPasswordRequirementsInfo(), IL_CAL_UNIX, ilCheckboxInputGUI\setChecked(), ilImageFileInputGUI\setImage(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilDateTimeInputGUI\setShowTime(), ilPasswordInputGUI\setSize(), ilTextInputGUI\setSize(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\setValue(), UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by createObject(), editObject(), saveObject(), and updateObject().
ilObjUserGUI::removeUserPictureObject | ( | ) |
remove user image
Definition at line 2589 of file class.ilObjUserGUI.php.
References $file, editObject(), ilUtil\getWebspaceDir(), and ilUtil\sendSuccess().
ilObjUserGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 3363 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::roleassignmentObject | ( | ) |
display roleassignment panel
public
Definition at line 3189 of file class.ilObjUserGUI.php.
References $_POST, $_SESSION, ilObjectGUI\$obj_id, ilObjectGUI\$ref_id, $tab, $title, __buildFilterSelect(), __showRolesTable(), ilObject\_getAllReferences(), 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 860 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $ilSetting, ilObjectGUI\$tpl, ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilAuthUtils\_isExternalAccountEnabled(), ilDateTime\get(), IL_CAL_DATETIME, IL_CAL_UNIX, IL_PASSWD_PLAIN, initCreate(), initForm(), ilUtil\sendInfo(), ilUtil\sendSuccess(), and uploadUserPictureObject().
ilObjUserGUI::setBackTarget | ( | $a_text, | |
$a_link | |||
) |
set back tab target
Definition at line 197 of file class.ilObjUserGUI.php.
ilObjUserGUI::setTitleAndDescription | ( | ) |
called by prepare output
Reimplemented from ilObjectGUI.
Definition at line 108 of file class.ilObjUserGUI.php.
References ilUtil\getImagePath().
ilObjUserGUI::showUpperIcon | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3578 of file class.ilObjUserGUI.php.
References $_GET, ilObjectGUI\$objDefinition, ilObjectGUI\$tpl, and ilObjectGUI\$tree.
ilObjUserGUI::updateObject | ( | ) |
Update user.
Reimplemented from ilObjectGUI.
Definition at line 1066 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilObjectGUI\$ilias, $ilSetting, ilObjectGUI\$tpl, __sendProfileMail(), ilAuthUtils\_allowPasswordModificationByAuthMode(), ilAuthUtils\_getAuthMode(), ilSecuritySettings\_getInstance(), ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilObjUser\_resetLoginAttempts(), ilSecuritySettings\ACCOUNT_SECURITY_MODE_CUSTOMIZED, ilDateTime\get(), IL_CAL_DATETIME, IL_CAL_UNIX, IL_PASSWD_PLAIN, initForm(), 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 2864 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $_SESSION, ilObjectGUI\$ilias, $key, $start, 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 2513 of file class.ilObjUserGUI.php.
References ilUtil\escapeShellArg(), ilUtil\getConvertCmd(), ilUtil\getWebspaceDir(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), and USER_FOLDER_ID.
Referenced by saveObject(), and updateObject().
ilObjUserGUI::$gender |
Definition at line 26 of file class.ilObjUserGUI.php.
Referenced by editOldObject().
ilObjUserGUI::$ilCtrl |
Definition at line 19 of file class.ilObjUserGUI.php.
Referenced by editObject(), ilObjUserGUI(), and initForm().
ilObjUserGUI::$type |
Definition at line 33 of file class.ilObjUserGUI.php.
ilObjUserGUI::$user_ref_id |
Definition at line 40 of file class.ilObjUserGUI.php.