ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
GUI class for public user profile presentation. More...
Public Member Functions | |
setUserId (int $a_userid) | |
getUserId () | |
setAdditional (array $a_additional) | |
Set Additonal Information. More... | |
getAdditional () | |
setBackUrl (string $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 () | |
validateUser (int $usrId) | |
Check if given user id is valid. More... | |
getProfilePortfolio () | |
Check if current profile portfolio is accessible. More... | |
doProfileAutoComplete () | |
approveContactRequest () | |
ignoreContactRequest () | |
Private Attributes | |
bool | $offline = false |
ilUserDefinedFields | $user_defined_fields |
GUIRequest | $profile_request |
int | $userid = 0 |
string | $backurl = '' |
array | $additional = [] |
bool | $embedded = false |
array | $custom_prefs = [] |
ilObjUser | $current_user |
ilSetting | $setting |
ilCtrl | $ctrl |
ilTabsGUI | $tabs |
ilGlobalTemplateInterface | $tpl |
ilRbacSystem | $rbac_system |
Language | $lng |
GUI class for public user profile presentation.
Definition at line 30 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 833 of file class.ilPublicUserProfileGUI.php.
References ILIAS\Repository\ctrl(), and getUserId().
ilPublicUserProfileGUI::deliverVCard | ( | ) |
Deliver vcard information.
Definition at line 629 of file class.ilPublicUserProfileGUI.php.
References ilObject\_exists(), ilUtil\deliverData(), getUserId(), and null.
|
protected |
Definition at line 822 of file class.ilPublicUserProfileGUI.php.
References exit.
ilPublicUserProfileGUI::executeCommand | ( | ) |
Definition at line 151 of file class.ilPublicUserProfileGUI.php.
References ILIAS\Repository\ctrl(), getAdditional(), getProfilePortfolio(), getUserId(), and validateUser().
ilPublicUserProfileGUI::getAdditional | ( | ) |
Definition at line 100 of file class.ilPublicUserProfileGUI.php.
References $additional.
Referenced by executeCommand(), and getEmbeddable().
|
static |
Definition at line 786 of file class.ilPublicUserProfileGUI.php.
References $DIC, $user_id, ANONYMOUS_USER_ID, ilObjUser\findInterests(), and null.
Referenced by ilAccountRegistrationGUI\doProfileAutoComplete().
ilPublicUserProfileGUI::getBackUrl | ( | ) |
Definition at line 120 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 257 of file class.ilPublicUserProfileGUI.php.
References $_SERVER, $renderer, $tpl, ilObject\_exists(), ilUserDefinedFields\_getInstance(), ilObjUser\_getPersonalPicturePath(), ilLink\_getStaticLink(), ilObjUser\_isAnonymous(), ANONYMOUS_USER_ID, ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ILIAS\UICore\GlobalTemplate\get(), getAdditional(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), getBackUrl(), ilBuddySystemLinkButton\getInstanceByUserId(), ilBadgeAssignment\getInstancesByUserId(), ilMailFormCall\getLinkTarget(), ilMailGlobalServices\getMailObjectRefId(), ilMapUtil\getMapGUI(), ilUserUtil\getNamePresentation(), getPublicPref(), getUserId(), IL_CAL_DATE, ilMapUtil\isActivated(), isProfilePublic(), ILIAS\Repository\lng(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), ILIAS\UICore\GlobalTemplate\setPermanentLink(), ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\UICore\GlobalTemplate\touchBlock().
Referenced by getHTML().
ilPublicUserProfileGUI::getHTML | ( | ) |
Definition at line 211 of file class.ilPublicUserProfileGUI.php.
References ILIAS\Repository\ctrl(), getEmbeddable(), getProfilePortfolio(), getUserId(), ilUtil\redirect(), and renderTitle().
Referenced by view().
|
protected |
Check if current profile portfolio is accessible.
Definition at line 774 of file class.ilPublicUserProfileGUI.php.
References ilObjPortfolio\getDefaultPortfolio(), getUserId(), and null.
Referenced by executeCommand(), and getHTML().
|
protected |
Get user preference for public profile.
Definition at line 136 of file class.ilPublicUserProfileGUI.php.
References ilObjUser\getPref().
Referenced by getEmbeddable().
ilPublicUserProfileGUI::getUserId | ( | ) |
Definition at line 87 of file class.ilPublicUserProfileGUI.php.
References $userid.
Referenced by approveContactRequest(), deliverVCard(), executeCommand(), getEmbeddable(), getHTML(), getProfilePortfolio(), ignoreContactRequest(), isProfilePublic(), and renderTitle().
|
protected |
Definition at line 843 of file class.ilPublicUserProfileGUI.php.
References ILIAS\Repository\ctrl(), and getUserId().
|
protected |
Definition at line 200 of file class.ilPublicUserProfileGUI.php.
References getUserId().
Referenced by getEmbeddable().
ilPublicUserProfileGUI::renderTitle | ( | ) |
Definition at line 764 of file class.ilPublicUserProfileGUI.php.
References ilObjUser\_getPersonalPicturePath(), ilUserUtil\getNamePresentation(), and getUserId().
Referenced by getHTML().
ilPublicUserProfileGUI::setAdditional | ( | array | $a_additional | ) |
Set Additonal Information.
Definition at line 95 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setBackUrl | ( | string | $backurl | ) |
Set Back Link URL.
Definition at line 108 of file class.ilPublicUserProfileGUI.php.
References $backurl, $parts, and ILIAS\Repository\ctrl().
Referenced by ilWorkspaceAccessGUI\executeCommand(), ilInfoScreenGUI\executeCommand(), and ilPersonalProfileGUI\executeCommand().
ilPublicUserProfileGUI::setCustomPrefs | ( | array | $a_prefs | ) |
Set custom preferences for public profile fields.
Definition at line 128 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setEmbedded | ( | bool | $a_value, |
bool | $a_offline = false |
||
) |
Definition at line 145 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setUserId | ( | int | $a_userid | ) |
Definition at line 82 of file class.ilPublicUserProfileGUI.php.
|
protected |
Check if given user id is valid.
Definition at line 736 of file class.ilPublicUserProfileGUI.php.
References ilObject\_lookupType(), and ILIAS\Repository\ctrl().
Referenced by executeCommand().
ilPublicUserProfileGUI::view | ( | ) |
View.
This one is called e.g. through the goto script
Definition at line 195 of file class.ilPublicUserProfileGUI.php.
References getHTML().
|
private |
Definition at line 37 of file class.ilPublicUserProfileGUI.php.
Referenced by getAdditional().
|
private |
Definition at line 36 of file class.ilPublicUserProfileGUI.php.
Referenced by getBackUrl(), and setBackUrl().
|
private |
Definition at line 42 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 40 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 39 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 38 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 46 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 32 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 34 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 45 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 41 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 43 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 44 of file class.ilPublicUserProfileGUI.php.
Referenced by getEmbeddable().
|
private |
Definition at line 33 of file class.ilPublicUserProfileGUI.php.
|
private |
Definition at line 35 of file class.ilPublicUserProfileGUI.php.
Referenced by getUserId().