ILIAS
Release_4_2_x_branch Revision 61807
|
GUI class for personal profile. More...
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().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 610 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 621 of file class.ilPersonalProfileGUI.php.
References ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
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().
& ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 47 of file class.ilPersonalProfileGUI.php.
References $_GET, $cmd, $ilCtrl, $lng, $tpl, and setTabs().
|
protected |
has profile set to a portfolio?
Definition at line 1013 of file class.ilPersonalProfileGUI.php.
References $ilSetting, and ilObjPortfolio\getDefaultPortfolio().
Referenced by setTabs().
ilPersonalProfileGUI::ilPersonalProfileGUI | ( | ) |
constructor
Definition at line 25 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and ilUserDefinedFields\_getInstance().
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().
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().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 194 of file class.ilPersonalProfileGUI.php.
References saveProfile().
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().
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().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1225 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendSuccess().
ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 696 of file class.ilPersonalProfileGUI.php.
Referenced by showPersonalData().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 586 of file class.ilPersonalProfileGUI.php.
References getProfilePortfolio().
Referenced by executeCommand().
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().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 520 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
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().
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().
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().
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().
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.