ILIAS
Release_5_0_x_branch Revision 61816
|
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, $anonymized=false) | |
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 694 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 624 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 635 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 537 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, ilPropertyFormGUI\addItem(), ilObjUser\getCity(), ilObjUser\getCountry(), ilMapUtil\getDefaultSettings(), ilObjUser\getLatitude(), ilObjUser\getLocationZoom(), ilObjUser\getLongitude(), ilObjUser\getStreet(), ilMapUtil\isActivated(), and ilLocationInputGUI\setLatitude().
Referenced by initPersonalDataForm().
ilPersonalProfileGUI::downloadPersonalData | ( | ) |
Download personal data export file.
@return |
Definition at line 1426 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 1047 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 1506 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilUser, $tpl, and ilUtil\sendSuccess().
ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Import personal data selection.
@return |
Definition at line 1439 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, and $tpl.
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 751 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, $lng, $options, 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 1458 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 1063 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 829 of file class.ilPersonalProfileGUI.php.
References $_SESSION, $ilCtrl, $ilSetting, $ilUser, $lng, $location, $redirect, $tpl, ilObjUser\_loginExists(), ilSession\get(), initPersonalDataForm(), ilMapUtil\isActivated(), ilUtil\isLogin(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilSession\set(), ilUtil\stripSlashes(), uploadUserPicture(), and workWithUserSetting().
ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 209 of file class.ilPersonalProfileGUI.php.
References $_POST, $GLOBALS, $ilSetting, $ilUser, __checkUserDefinedRequiredFields(), ilUtil\is_email(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showProfile(), ilUtil\stripSlashes(), ilLuceneIndexer\updateLuceneIndex(), and workWithUserSetting().
Referenced by removeUserPicture().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1289 of file class.ilPersonalProfileGUI.php.
References $_POST, $GLOBALS, $ilCtrl, $ilUser, $lng, $tpl, ilUtil\sendSuccess(), and ilLuceneIndexer\updateLuceneIndex().
ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 710 of file class.ilPersonalProfileGUI.php.
Referenced by showPersonalData().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 593 of file class.ilPersonalProfileGUI.php.
References $ilUser, and getProfilePortfolio().
Referenced by executeCommand().
ilPersonalProfileGUI::showExportImport | ( | ) |
Show export/import.
@return |
Definition at line 1382 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilUser, and $tpl.
ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false | ) |
Personal data form.
Definition at line 724 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 526 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 1020 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, and $lng.
ilPersonalProfileGUI::showPublicProfileFields | ( | ilPropertyformGUI | $form, |
array | $prefs, | ||
$parent = null , |
|||
$anonymized = false |
|||
) |
Add fields to form.
ilPropertyformGUI | $form | |
array | $prefs | |
object | $parent | |
bool | $a_anonymized |
Definition at line 1136 of file class.ilPersonalProfileGUI.php.
References $ilUser, ilObjUser\_getPersonalPicturePath(), ilDatePresentation\formatDate(), IL_CAL_DATE, ilMapUtil\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.