|
ILIAS
Release_4_2_x_branch Revision 61807
|
GUI class for personal profile. More...
Collaboration diagram for ilPersonalProfileGUI:Public Member Functions | |
| ilPersonalProfileGUI () | |
| constructor | |
| & | executeCommand () |
| execute command | |
| workWithUserSetting ($setting) | |
| Returns TRUE if working with the given user setting is allowed, FALSE otherwise. | |
| userSettingVisible ($setting) | |
| Returns TRUE if user setting is visible, FALSE otherwise. | |
| userSettingEnabled ($setting) | |
| Returns TRUE if user setting is enabled, FALSE otherwise. | |
| uploadUserPicture () | |
| Upload user image. | |
| removeUserPicture () | |
| remove user image | |
| saveProfile () | |
| save user profile data | |
| showProfile () | |
| show profile form | |
| addLocationToForm (ilPropertyFormGUI $a_form, ilObjUser $a_user) | |
| Add location fields to form if activated. | |
| setTabs () | |
| __showOtherInformations () | |
| __showUserDefinedFields () | |
| __checkUserDefinedRequiredFields () | |
| setHeader () | |
| Set header. | |
| showPersonalData ($a_no_init=false) | |
| Personal data form. | |
| initPersonalDataForm () | |
| Init personal form. | |
| savePersonalData () | |
| Save personal data form. | |
| showPublicProfile ($a_no_init=false) | |
| Public profile form. | |
| initPublicProfileForm () | |
| Init public profile form. | |
| showPublicProfileFields (ilPropertyformGUI $form, array $prefs, $parent=null) | |
| Add fields to form. | |
| savePublicProfile () | |
| Save public profile form. | |
Data Fields | |
| $tpl | |
| $lng | |
| $ilias | |
| $ctrl | |
| $user_defined_fields = null | |
Protected Member Functions | |
| getProfilePortfolio () | |
| has profile set to a portfolio? | |
GUI class for personal profile.
ilPersonalProfileGUI: ilPublicUserProfileGUI
Definition at line 12 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 680 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
Here is the caller graph for this function:| ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 610 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
Here is the call graph for this function:| ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 621 of file class.ilPersonalProfileGUI.php.
References ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
Here is the call graph for this function:| ilPersonalProfileGUI::addLocationToForm | ( | ilPropertyFormGUI | $a_form, |
| ilObjUser | $a_user | ||
| ) |
Add location fields to form if activated.
| ilPropertyFormGUI | $a_form | |
| ilObjUser | $a_user |
Definition at line 531 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, ilPropertyFormGUI\addItem(), ilObjUser\getCity(), ilObjUser\getCountry(), ilGoogleMapUtil\getDefaultSettings(), ilObjUser\getLatitude(), ilObjUser\getLocationZoom(), ilObjUser\getLongitude(), ilObjUser\getStreet(), ilGoogleMapUtil\isActivated(), and ilLocationInputGUI\setLatitude().
Referenced by initPersonalDataForm().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 47 of file class.ilPersonalProfileGUI.php.
References $_GET, $cmd, $ilCtrl, $lng, $tpl, and setTabs().
Here is the call graph for this function:
|
protected |
has profile set to a portfolio?
Definition at line 1013 of file class.ilPersonalProfileGUI.php.
References $ilSetting, and ilObjPortfolio\getDefaultPortfolio().
Referenced by setTabs().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::ilPersonalProfileGUI | ( | ) |
constructor
Definition at line 25 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and ilUserDefinedFields\_getInstance().
Here is the call graph for this function:| ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 738 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, addLocationToForm(), UDF_TYPE_SELECT, UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by savePersonalData(), and showPersonalData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
| int | $a_mode | Edit Mode |
Definition at line 1029 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Here is the call graph for this function:| ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 194 of file class.ilPersonalProfileGUI.php.
References saveProfile().
Here is the call graph for this function:| ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 812 of file class.ilPersonalProfileGUI.php.
References $_SESSION, $ilCtrl, $ilSetting, $lng, $location, $redirect, $tpl, ilObjUser\_loginExists(), initPersonalDataForm(), ilGoogleMapUtil\isActivated(), ilUtil\isLogin(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), uploadUserPicture(), and workWithUserSetting().
Here is the call graph for this function:| ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 208 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, __checkUserDefinedRequiredFields(), ilUtil\is_email(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showProfile(), ilUtil\stripSlashes(), and workWithUserSetting().
Referenced by removeUserPicture().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1225 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendSuccess().
Here is the call graph for this function:| ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 696 of file class.ilPersonalProfileGUI.php.
Referenced by showPersonalData().
Here is the caller graph for this function:| ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 586 of file class.ilPersonalProfileGUI.php.
References getProfilePortfolio().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false | ) |
Personal data form.
Definition at line 711 of file class.ilPersonalProfileGUI.php.
References $ilias, $ilSetting, $lng, initPersonalDataForm(), ilUtil\sendInfo(), and setHeader().
Referenced by showProfile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 520 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 986 of file class.ilPersonalProfileGUI.php.
References $ilSetting, and $lng.
| ilPersonalProfileGUI::showPublicProfileFields | ( | ilPropertyformGUI | $form, |
| array | $prefs, | ||
$parent = null |
|||
| ) |
Add fields to form.
| ilPropertyformGUI | $form | |
| array | $prefs | |
| object | $parent |
Definition at line 1091 of file class.ilPersonalProfileGUI.php.
References ilDatePresentation\formatDate(), IL_CAL_DATE, ilGoogleMapUtil\isActivated(), ilCheckboxInputGUI\setChecked(), and ilCheckboxInputGUI\setOptionTitle().
Here is the call graph for this function:| ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 124 of file class.ilPersonalProfileGUI.php.
References ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), ilUtil\isConvertVersionAtLeast(), ilUtil\sendFailure(), and workWithUserSetting().
Referenced by savePersonalData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::userSettingEnabled | ( | $setting | ) |
| ilPersonalProfileGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 96 of file class.ilPersonalProfileGUI.php.
References $result.
Referenced by __showOtherInformations().
Here is the caller graph for this function:| ilPersonalProfileGUI::workWithUserSetting | ( | $setting | ) |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
Definition at line 78 of file class.ilPersonalProfileGUI.php.
References $result.
Referenced by savePersonalData(), saveProfile(), and uploadUserPicture().
Here is the caller graph for this function:| ilPersonalProfileGUI::$ctrl |
Definition at line 17 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::$ilias |
Definition at line 16 of file class.ilPersonalProfileGUI.php.
Referenced by ilPersonalProfileGUI(), and showPersonalData().
| ilPersonalProfileGUI::$lng |
Definition at line 15 of file class.ilPersonalProfileGUI.php.
Referenced by executeCommand(), ilPersonalProfileGUI(), initPersonalDataForm(), savePersonalData(), and showPersonalData().
| ilPersonalProfileGUI::$tpl |
Definition at line 14 of file class.ilPersonalProfileGUI.php.
Referenced by executeCommand(), ilPersonalProfileGUI(), and savePersonalData().
| ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 19 of file class.ilPersonalProfileGUI.php.