ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
GUI class for public user profile presentation. More...
Public Member Functions | |
__construct ($a_user_id=0) | |
Constructor. More... | |
setUserId ($a_userid) | |
Set User ID. More... | |
getUserId () | |
Get User ID. More... | |
setAdditional ($a_additional) | |
Set Additonal Information. More... | |
getAdditional () | |
Get Additonal Information. More... | |
setBackUrl ($a_backurl) | |
Set Back Link URL. More... | |
getBackUrl () | |
Get Back Link URL. More... | |
setCustomPrefs (array $a_prefs) | |
Set custom preferences for public profile fields. More... | |
setEmbedded ($a_value, $a_offline=false) | |
executeCommand () | |
Execute Command. More... | |
view () | |
View. More... | |
getHTML () | |
Show user page. More... | |
getEmbeddable ($a_add_goto=false) | |
get public profile html code More... | |
deliverVCard () | |
Deliver vcard information. More... | |
renderTitle () | |
Static Public Member Functions | |
static | getAutocompleteResult ($a_field_id, $a_term) |
Protected Member Functions | |
handleBackUrl ($a_is_portfolio=false) | |
getPublicPref (ilObjUser $a_user, $a_id) | |
Get user preference for public profile. More... | |
getProfilePortfolio () | |
Check if current profile portfolio is accessible. More... | |
doProfileAutoComplete () | |
Static Protected Member Functions | |
static | validateUser ($usrId) |
Check if given user id is valid. More... | |
Protected Attributes | |
$userid | |
$portfolioid | |
$backurl | |
$additional | |
$embedded | |
$custom_prefs | |
GUI class for public user profile presentation.
ilPublicUserProfileGUI: ilObjPortfolioGUI
Definition at line 14 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::__construct | ( | $a_user_id = 0 | ) |
Constructor.
int | User ID. |
Definition at line 28 of file class.ilPublicUserProfileGUI.php.
References $_GET, $ilCtrl, $lng, array, setBackUrl(), and setUserId().
ilPublicUserProfileGUI::deliverVCard | ( | ) |
Deliver vcard information.
Definition at line 649 of file class.ilPublicUserProfileGUI.php.
References $_GET, $fh, $key, $type, ilObject\_exists(), array, ilUtil\deliverData(), ilObjMediaObject\getMimeType(), getUserId(), ilUtil\getWebspaceDir(), TEL_TYPE_CELL, TEL_TYPE_FAX, TEL_TYPE_HOME, and TEL_TYPE_WORK.
|
protected |
Definition at line 858 of file class.ilPublicUserProfileGUI.php.
References $ilCtrl, $result, array, ilJsonUtil\encode(), exit, getUserId(), and string.
ilPublicUserProfileGUI::executeCommand | ( | ) |
Execute Command.
Definition at line 177 of file class.ilPublicUserProfileGUI.php.
References $_GET, $ilCtrl, $ret, $tpl, getAdditional(), getProfilePortfolio(), getUserId(), handleBackUrl(), and ilNotificationOSDHandler\removeNotification().
ilPublicUserProfileGUI::getAdditional | ( | ) |
Get Additonal Information.
Definition at line 81 of file class.ilPublicUserProfileGUI.php.
References $additional.
Referenced by executeCommand(), and getEmbeddable().
|
static |
Definition at line 822 of file class.ilPublicUserProfileGUI.php.
References $ilUser, $result, array, ilObjUser\findInterests(), and ilSkillTreeNode\findSkills().
Referenced by ilAccountRegistrationGUI\doProfileAutoComplete().
ilPublicUserProfileGUI::getBackUrl | ( | ) |
Get Back Link URL.
Definition at line 110 of file class.ilPublicUserProfileGUI.php.
References $backurl.
Referenced by getEmbeddable(), and handleBackUrl().
ilPublicUserProfileGUI::getEmbeddable | ( | $a_add_goto = false | ) |
get public profile html code
Used in Personal Profile (as preview) and Portfolio (as page block)
Definition at line 288 of file class.ilPublicUserProfileGUI.php.
References $_SERVER, $additional, $h, $ilCtrl, $ilSetting, $ilUser, $key, $lng, $title, $tpl, ilObject\_exists(), ilUserDefinedFields\_getInstance(), ilLink\_getStaticLink(), ilObjUser\_isAnonymous(), array, ilDatePresentation\formatDate(), getAdditional(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), getBackUrl(), ilPermanentLinkGUI\getHTML(), ilBuddySystemLinkButton\getInstanceByUserId(), ilBadgeAssignment\getInstancesByUserId(), ilMailFormCall\getLinkTarget(), ilMapUtil\getMapGUI(), getPublicPref(), getUserId(), ilUtil\getWebspaceDir(), IL_CAL_DATE, and ilMapUtil\isActivated().
Referenced by getHTML().
ilPublicUserProfileGUI::getHTML | ( | ) |
Show user page.
Definition at line 238 of file class.ilPublicUserProfileGUI.php.
References $current, $ilCtrl, $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.
Will use original or custom preferences
ilObjUser | $a_user | |
string | $a_id |
Definition at line 159 of file class.ilPublicUserProfileGUI.php.
References ilObjUser\getPref().
Referenced by getEmbeddable().
ilPublicUserProfileGUI::getUserId | ( | ) |
Get User ID.
Definition at line 61 of file class.ilPublicUserProfileGUI.php.
References $userid.
Referenced by deliverVCard(), doProfileAutoComplete(), executeCommand(), getEmbeddable(), getHTML(), getProfilePortfolio(), and renderTitle().
|
protected |
Definition at line 115 of file class.ilPublicUserProfileGUI.php.
References $_GET, $lng, and getBackUrl().
Referenced by executeCommand(), and renderTitle().
ilPublicUserProfileGUI::renderTitle | ( | ) |
Definition at line 791 of file class.ilPublicUserProfileGUI.php.
References $tpl, ilUserUtil\getNamePresentation(), getUserId(), and handleBackUrl().
Referenced by getHTML().
ilPublicUserProfileGUI::setAdditional | ( | $a_additional | ) |
Set Additonal Information.
array | $a_additional | Additonal Information |
Definition at line 71 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setBackUrl | ( | $a_backurl | ) |
Set Back Link URL.
string | $a_backurl | Back Link URL |
Definition at line 91 of file class.ilPublicUserProfileGUI.php.
References $ilCtrl.
Referenced by __construct().
ilPublicUserProfileGUI::setCustomPrefs | ( | array | $a_prefs | ) |
Set custom preferences for public profile fields.
array | $a_prefs |
Definition at line 145 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setEmbedded | ( | $a_value, | |
$a_offline = false |
|||
) |
Definition at line 168 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 51 of file class.ilPublicUserProfileGUI.php.
Referenced by __construct().
|
staticprotected |
Check if given user id is valid.
int | $usrId | The user id of the subject user |
Definition at line 758 of file class.ilPublicUserProfileGUI.php.
References $DIC, $ilCtrl, $ilUser, and ilObject\_lookupType().
ilPublicUserProfileGUI::view | ( | ) |
View.
This one is called e.g. through the goto script
Definition at line 230 of file class.ilPublicUserProfileGUI.php.
References getHTML().
|
protected |
Definition at line 19 of file class.ilPublicUserProfileGUI.php.
Referenced by getAdditional(), and getEmbeddable().
|
protected |
Definition at line 18 of file class.ilPublicUserProfileGUI.php.
Referenced by getBackUrl().
|
protected |
Definition at line 21 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 20 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 17 of file class.ilPublicUserProfileGUI.php.
|
protected |
Definition at line 16 of file class.ilPublicUserProfileGUI.php.
Referenced by getUserId().