ILIAS
eassessment Revision 61809
|
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 |
Protected Member Functions | |
loadValuesFromForm ($a_mode= 'create') | |
isSettingChangeable ($a_field) | |
Check if setting is visible This is the case when called from user folder. | |
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. | |
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 18 of file class.ilObjUserGUI.php.
ilObjUserGUI::__buildFilterSelect | ( | ) |
Definition at line 3328 of file class.ilObjUserGUI.php.
References $_SESSION, and formSelect().
Referenced by roleassignmentObject().
ilObjUserGUI::__checkUserDefinedRequiredFields | ( | ) |
display user create form
Definition at line 208 of file class.ilObjUserGUI.php.
References $_POST, and ilUserDefinedFields\_getInstance().
Referenced by updateObjectOld().
ilObjUserGUI::__getDateSelect | ( | $a_type, | |
$a_varname, | |||
$a_selected | |||
) |
Definition at line 3181 of file class.ilObjUserGUI.php.
References formSelect().
Referenced by editOldObject().
& ilObjUserGUI::__initTableGUI | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3298 of file class.ilObjUserGUI.php.
Referenced by __showRolesTable().
ilObjUserGUI::__sendProfileMail | ( | ) |
Definition at line 3407 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 3305 of file class.ilObjUserGUI.php.
References $_GET.
Referenced by __showRolesTable().
ilObjUserGUI::__showRolesTable | ( | $a_result_set, | |
$a_role_ids = NULL |
|||
) |
Definition at line 3241 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 224 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 3231 of file class.ilObjUserGUI.php.
Referenced by editOldObject(), and updateObjectOld().
ilObjUserGUI::__unsetSessionVariables | ( | ) |
Definition at line 3323 of file class.ilObjUserGUI.php.
References $_SESSION.
ilObjUserGUI::_goto | ( | $a_target | ) |
Goto user profile screen.
Definition at line 3472 of file class.ilObjUserGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObjUser\_lookupId(), exit, and ilUtil\stripSlashes().
ilObjUserGUI::addAdminLocatorItems | ( | ) |
should be overwritten to add object specific items (repository items are preloaded)
Reimplemented from ilObjectGUI.
Definition at line 3350 of file class.ilObjUserGUI.php.
References $_GET, ilFrameTargetInfo\_getFrame(), ilObject\_lookupObjId(), and USER_FOLDER_ID.
ilObjUserGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 3160 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::assignSaveObject | ( | ) |
assign users to role
public
Definition at line 2931 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.
ilObjUserGUI::createObject | ( | ) |
Display user create form.
Reimplemented from ilObjectGUI.
Definition at line 343 of file class.ilObjUserGUI.php.
References ilObjectGUI\$tpl, initCreate(), and initForm().
ilObjUserGUI::editObject | ( | ) |
Display user edit form.
public
Reimplemented from ilObjectGUI.
Definition at line 521 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 1676 of file class.ilObjUserGUI.php.
References $_SESSION, ilObjectGUI\$data, $gender, ilObjectGUI\$ilias, $ilSetting, $name, $path, __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 71 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 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, and ilObjUserTracking\_enabledLearningProgress().
Referenced by getAdminTabs().
ilObjUserGUI::getValues | ( | ) |
Get values from user object and put them into form.
Definition at line 917 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 3340 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 272 of file class.ilObjUserGUI.php.
References ilObjectGUI\$tpl, ilObjRole\_getAssignUsersStatus(), and USER_FOLDER_ID.
Referenced by createObject(), and saveObject().
ilObjUserGUI::initForm | ( | $a_mode | ) |
Init user form.
Definition at line 1036 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\formatSize(), ilUtil\getPasswordRequirementsInfo(), IL_CAL_DATETIME, IL_CAL_UNIX, isSettingChangeable(), 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, 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 1650 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 562 of file class.ilObjUserGUI.php.
References $_POST, $ilSetting, ilObjectGUI\$object, IL_CAL_DATETIME, IL_CAL_UNIX, and isSettingChangeable().
Referenced by saveObject(), and updateObject().
ilObjUserGUI::removeUserPictureObject | ( | ) |
remove user image
Definition at line 2398 of file class.ilObjUserGUI.php.
References $file, editObject(), ilUtil\getWebspaceDir(), and ilUtil\sendSuccess().
ilObjUserGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 3172 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::roleassignmentObject | ( | ) |
display roleassignment panel
public
Definition at line 2998 of file class.ilObjUserGUI.php.
References $_POST, $_SESSION, ilObjectGUI\$obj_id, $path, 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 362 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $ilSetting, ilObjectGUI\$tpl, ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilAuthUtils\_isExternalAccountEnabled(), IL_PASSWD_PLAIN, initCreate(), initForm(), isSettingChangeable(), loadValuesFromForm(), ilUtil\sendInfo(), ilUtil\sendSuccess(), and uploadUserPictureObject().
ilObjUserGUI::setBackTarget | ( | $a_text, | |
$a_link | |||
) |
set back tab target
Definition at line 198 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 | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 3387 of file class.ilObjUserGUI.php.
References $_GET, ilObjectGUI\$objDefinition, ilObjectGUI\$tpl, and ilObjectGUI\$tree.
ilObjUserGUI::updateObject | ( | ) |
Update user.
Reimplemented from ilObjectGUI.
Definition at line 747 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, IL_PASSWD_PLAIN, initForm(), 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 2673 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $_SESSION, ilObjectGUI\$ilias, 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 2322 of file class.ilObjUserGUI.php.
References ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), 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 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.