ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_user_id=0) | |
setUserId (int $a_userid) | |
getUserId () | |
setAdditional (array $a_additional) | |
Set Additonal Information. More... | |
getAdditional () | |
setBackUrl (string $a_backurl) | |
Set Back Link URL. More... | |
getBackUrl () | |
setCustomPrefs (array $a_prefs) | |
Set custom preferences for public profile fields. More... | |
setEmbedded (bool $a_value, bool $a_offline=false) | |
executeCommand () | |
view () | |
View. More... | |
getHTML () | |
getEmbeddable (bool $a_add_goto=false) | |
get public profile html code Used in Personal Profile (as preview) and Portfolio (as page block) More... | |
deliverVCard () | |
Deliver vcard information. More... | |
renderTitle () | |
Static Public Member Functions | |
static | getAutocompleteResult (string $a_field_id, string $a_term) |
Protected Member Functions | |
getPublicPref (ilObjUser $a_user, string $a_id) | |
Get user preference for public profile. More... | |
isProfilePublic () | |
getProfilePortfolio () | |
Check if current profile portfolio is accessible. More... | |
doProfileAutoComplete () | |
approveContactRequest () | |
ignoreContactRequest () | |
Static Protected Member Functions | |
static | validateUser (int $usrId) |
Check if given user id is valid. More... | |
Protected Attributes | |
ilUserDefinedFields | $user_defined_fields |
ILIAS User ProfileGUIRequest | $profile_request |
int | $userid = 0 |
int | $portfolioid = 0 |
string | $backurl = "" |
array | $additional = [] |
bool | $embedded = false |
array | $custom_prefs = [] |
ilObjUser | $current_user |
ilSetting | $setting |
Private Attributes | |
bool | $offline = false |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning GUI class for public user profile presentation.
Definition at line 24 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::__construct | ( | int | $a_user_id = 0 | ) |
Definition at line 38 of file class.ilPublicUserProfileGUI.php.
References $DIC, $lng, setBackUrl(), and setUserId().
|
protected |
Definition at line 873 of file class.ilPublicUserProfileGUI.php.
References $DIC, and getUserId().
ilPublicUserProfileGUI::deliverVCard | ( | ) |
Deliver vcard information.
Definition at line 647 of file class.ilPublicUserProfileGUI.php.
References ILIAS\LTI\ToolProvider\$key, $type, ilObject\_exists(), ilUtil\deliverData(), ilObjMediaObject\getMimeType(), getUserId(), ilFileUtils\getWebspaceDir(), TEL_TYPE_CELL, TEL_TYPE_FAX, TEL_TYPE_HOME, and TEL_TYPE_WORK.
|
protected |
ilPublicUserProfileGUI::executeCommand | ( | ) |
Definition at line 141 of file class.ilPublicUserProfileGUI.php.
References $DIC, $tpl, getAdditional(), getProfilePortfolio(), and getUserId().
ilPublicUserProfileGUI::getAdditional | ( | ) |
Definition at line 86 of file class.ilPublicUserProfileGUI.php.
References $additional.
Referenced by executeCommand(), and getEmbeddable().
|
static |
Definition at line 821 of file class.ilPublicUserProfileGUI.php.
References $DIC, $ilUser, ANONYMOUS_USER_ID, and ilObjUser\findInterests().
Referenced by ilAccountRegistrationGUI\doProfileAutoComplete().
ilPublicUserProfileGUI::getBackUrl | ( | ) |
Definition at line 110 of file class.ilPublicUserProfileGUI.php.
References $backurl.
Referenced by getEmbeddable().
ilPublicUserProfileGUI::getEmbeddable | ( | bool | $a_add_goto = false | ) |
get public profile html code Used in Personal Profile (as preview) and Portfolio (as page block)
Definition at line 256 of file class.ilPublicUserProfileGUI.php.
References $_SERVER, $DIC, $ilSetting, $ilUser, ILIAS\LTI\ToolProvider\$key, $lng, $tpl, ilObject\_exists(), ilUserDefinedFields\_getInstance(), ilObjUser\_getPersonalPicturePath(), ilLink\_getStaticLink(), ilObjUser\_isAnonymous(), ANONYMOUS_USER_ID, ilDatePresentation\formatDate(), getAdditional(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), getBackUrl(), ilBuddySystemLinkButton\getInstanceByUserId(), ilBadgeAssignment\getInstancesByUserId(), ilMailFormCall\getLinkTarget(), ilMailGlobalServices\getMailObjectRefId(), ilMapUtil\getMapGUI(), ilUserUtil\getNamePresentation(), getPublicPref(), getUserId(), ilFileUtils\getWebspaceDir(), IL_CAL_DATE, ilMapUtil\isActivated(), isProfilePublic(), and ilWACSignedPath\signFile().
Referenced by getHTML().
ilPublicUserProfileGUI::getHTML | ( | ) |
Definition at line 205 of file class.ilPublicUserProfileGUI.php.
References $DIC, $ilSetting, getEmbeddable(), getProfilePortfolio(), getUserId(), ilUtil\redirect(), and renderTitle().
Referenced by view().
|
protected |
Check if current profile portfolio is accessible.
Definition at line 809 of file class.ilPublicUserProfileGUI.php.
References ilObjPortfolio\getDefaultPortfolio(), and getUserId().
Referenced by executeCommand(), and getHTML().
|
protected |
Get user preference for public profile.
Definition at line 126 of file class.ilPublicUserProfileGUI.php.
References ilObjUser\getPref().
Referenced by getEmbeddable().
ilPublicUserProfileGUI::getUserId | ( | ) |
Definition at line 73 of file class.ilPublicUserProfileGUI.php.
References $userid.
Referenced by approveContactRequest(), deliverVCard(), executeCommand(), getEmbeddable(), getHTML(), getProfilePortfolio(), ignoreContactRequest(), isProfilePublic(), and renderTitle().
|
protected |
Definition at line 886 of file class.ilPublicUserProfileGUI.php.
References $DIC, and getUserId().
|
protected |
Definition at line 193 of file class.ilPublicUserProfileGUI.php.
References $setting, and getUserId().
Referenced by getEmbeddable().
ilPublicUserProfileGUI::renderTitle | ( | ) |
Definition at line 795 of file class.ilPublicUserProfileGUI.php.
References $DIC, $tpl, ilObjUser\_getPersonalPicturePath(), ilUserUtil\getNamePresentation(), and getUserId().
Referenced by getHTML().
ilPublicUserProfileGUI::setAdditional | ( | array | $a_additional | ) |
Set Additonal Information.
Definition at line 81 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setBackUrl | ( | string | $a_backurl | ) |
Set Back Link URL.
Definition at line 94 of file class.ilPublicUserProfileGUI.php.
Referenced by __construct(), ilWorkspaceAccessGUI\executeCommand(), ilInfoScreenGUI\executeCommand(), and ilPersonalProfileGUI\executeCommand().
ilPublicUserProfileGUI::setCustomPrefs | ( | array | $a_prefs | ) |
Set custom preferences for public profile fields.
Definition at line 118 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setEmbedded | ( | bool | $a_value, |
bool | $a_offline = false |
||
) |
Definition at line 135 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setUserId | ( | int | $a_userid | ) |
Definition at line 68 of file class.ilPublicUserProfileGUI.php.
Referenced by __construct().
|
staticprotected |
Check if given user id is valid.
Definition at line 763 of file class.ilPublicUserProfileGUI.php.
References $DIC, $ilUser, and ilObject\_lookupType().
ilPublicUserProfileGUI::view | ( | ) |
View.
This one is called e.g. through the goto script
Definition at line 188 of file class.ilPublicUserProfileGUI.php.
References getHTML().
|
protected |
Definition at line 32 of file class.ilPublicUserProfileGUI.php.
Referenced by getAdditional().
|
protected |
Definition at line 31 of file class.ilPublicUserProfileGUI.php.
Referenced by getBackUrl().
|
protected |
Definition at line 35 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 34 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 33 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 26 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 30 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 28 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 36 of file class.ilPublicUserProfileGUI.php.
Referenced by isProfilePublic().
|
protected |
Definition at line 27 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 29 of file class.ilPublicUserProfileGUI.php.
Referenced by getUserId().