ILIAS
release_4-3 Revision
|
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. | |
showExportImport () | |
Show export/import. | |
exportPersonalData () | |
Export personal data. | |
downloadPersonalData () | |
Download personal data export file. | |
importPersonalDataSelection () | |
Import personal data selection. | |
initPersonalDataImportForm () | |
Init personal data import form. | |
importPersonalData () | |
Import personal data. |
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 688 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 618 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 629 of file class.ilPersonalProfileGUI.php.
References $ilUser, 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 532 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::downloadPersonalData | ( | ) |
Download personal data export file.
@return |
Definition at line 1381 of file class.ilPersonalProfileGUI.php.
References $ilUser.
& ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 48 of file class.ilPersonalProfileGUI.php.
References $_GET, $cmd, $ilCtrl, $ilUser, $lng, $tpl, and setTabs().
ilPersonalProfileGUI::exportPersonalData | ( | ) |
|
protected |
has profile set to a portfolio?
Definition at line 1021 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, 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::importPersonalData | ( | ) |
Import personal data.
@return |
Definition at line 1461 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilUser, $tpl, and ilUtil\sendSuccess().
ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Import personal data selection.
@return |
Definition at line 1394 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, and $tpl.
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 746 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, $lng, addLocationToForm(), UDF_TYPE_SELECT, UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by savePersonalData(), and showPersonalData().
ilPersonalProfileGUI::initPersonalDataImportForm | ( | ) |
Init personal data import form.
@return |
Definition at line 1413 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, ilFormPropertyGUI\setRequired(), and ilFormPropertyGUI\setTitle().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 1037 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, $lng, ilFormPropertyGUI\setInfo(), and ilRadioGroupInputGUI\setValue().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 195 of file class.ilPersonalProfileGUI.php.
References $ilUser, and saveProfile().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 820 of file class.ilPersonalProfileGUI.php.
References $_SESSION, $ilCtrl, $ilSetting, $ilUser, $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 209 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, $ilUser, __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 1250 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilUser, $lng, $tpl, and ilUtil\sendSuccess().
ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 704 of file class.ilPersonalProfileGUI.php.
Referenced by showPersonalData().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 587 of file class.ilPersonalProfileGUI.php.
References $ilUser, and getProfilePortfolio().
Referenced by executeCommand().
ilPersonalProfileGUI::showExportImport | ( | ) |
Show export/import.
@return |
Definition at line 1337 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilUser, and $tpl.
ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false | ) |
Personal data form.
Definition at line 719 of file class.ilPersonalProfileGUI.php.
References $ilias, $ilSetting, $ilUser, $lng, initPersonalDataForm(), ilUtil\sendInfo(), and setHeader().
Referenced by showProfile().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 521 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 994 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, and $lng.
ilPersonalProfileGUI::showPublicProfileFields | ( | ilPropertyformGUI | $form, |
array | $prefs, | ||
$parent = null |
|||
) |
Add fields to form.
ilPropertyformGUI | $form | |
array | $prefs | |
object | $parent |
Definition at line 1109 of file class.ilPersonalProfileGUI.php.
References $ilUser, ilObjUser\_getPersonalPicturePath(), ilDatePresentation\formatDate(), IL_CAL_DATE, ilGoogleMapUtil\isActivated(), ilCheckboxInputGUI\setChecked(), and ilCheckboxInputGUI\setOptionTitle().
ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 125 of file class.ilPersonalProfileGUI.php.
References $ilUser, 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 97 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 79 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.