ILIAS
Release_4_2_x_branch Revision 61807
|
GUI class for public user profile presentation. More...
Public Member Functions | |
__construct ($a_user_id=0) | |
Constructor. | |
setUserId ($a_userid) | |
Set User ID. | |
getUserId () | |
Get User ID. | |
setAdditional ($a_additional) | |
Set Additonal Information. | |
getAdditional () | |
Get Additonal Information. | |
setBackUrl ($a_backurl) | |
Set Back Link URL. | |
getBackUrl () | |
Get Back Link URL. | |
setCustomPrefs (array $a_prefs) | |
Set custom preferences for public profile fields. | |
setEmbedded ($a_value, $a_offline=false) | |
executeCommand () | |
Execute Command. | |
view () | |
View. | |
getHTML () | |
Show user page. | |
getEmbeddable () | |
get public profile html code | |
deliverVCard () | |
Deliver vcard information. | |
renderTitle () |
Protected Member Functions | |
getPublicPref (ilObjUser $a_user, $a_id) | |
Get user preference for public profile. | |
getProfilePortfolio () | |
Check if current profile portfolio is accessible. |
Static Protected Member Functions | |
static | validateUser ($a_user_id) |
Check if given user id is valid. |
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, setBackUrl(), and setUserId().
ilPublicUserProfileGUI::deliverVCard | ( | ) |
Deliver vcard information.
Definition at line 518 of file class.ilPublicUserProfileGUI.php.
References $_GET, ilObject\_exists(), ilUtil\deliverData(), ilObjMediaObject\getMimeType(), getUserId(), ilUtil\getWebspaceDir(), TEL_TYPE_CELL, TEL_TYPE_FAX, TEL_TYPE_HOME, and TEL_TYPE_WORK.
ilPublicUserProfileGUI::executeCommand | ( | ) |
Execute Command.
Definition at line 160 of file class.ilPublicUserProfileGUI.php.
References $_GET, $cmd, $ilCtrl, $ret, $tpl, getAdditional(), getProfilePortfolio(), and getUserId().
ilPublicUserProfileGUI::getAdditional | ( | ) |
Get Additonal Information.
Definition at line 85 of file class.ilPublicUserProfileGUI.php.
References $additional.
Referenced by executeCommand(), and getEmbeddable().
ilPublicUserProfileGUI::getBackUrl | ( | ) |
Get Back Link URL.
Definition at line 115 of file class.ilPublicUserProfileGUI.php.
References $backurl.
Referenced by renderTitle().
ilPublicUserProfileGUI::getEmbeddable | ( | ) |
get public profile html code
Used in Personal Profile (as preview) and Portfolio (as page block)
Definition at line 253 of file class.ilPublicUserProfileGUI.php.
References $additional, $ilCtrl, $ilSetting, $lng, $tpl, ilObject\_exists(), ilUserDefinedFields\_getInstance(), ilMailFormCall\_getLinkTarget(), ilObjUser\_getPersonalPicturePath(), getAdditional(), ilUtil\getImagePath(), getPublicPref(), getUserId(), ilUtil\getWebspaceDir(), and ilGoogleMapUtil\isActivated().
Referenced by getHTML().
ilPublicUserProfileGUI::getHTML | ( | ) |
Show user page.
Definition at line 217 of file class.ilPublicUserProfileGUI.php.
References $ilCtrl, $ilSetting, getEmbeddable(), getProfilePortfolio(), getUserId(), and renderTitle().
Referenced by view().
|
protected |
Check if current profile portfolio is accessible.
Definition at line 676 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 139 of file class.ilPublicUserProfileGUI.php.
References ilObjUser\getPref().
Referenced by getEmbeddable().
ilPublicUserProfileGUI::getUserId | ( | ) |
Get User ID.
Definition at line 65 of file class.ilPublicUserProfileGUI.php.
References $userid.
Referenced by deliverVCard(), executeCommand(), getEmbeddable(), getHTML(), getProfilePortfolio(), and renderTitle().
ilPublicUserProfileGUI::renderTitle | ( | ) |
Definition at line 649 of file class.ilPublicUserProfileGUI.php.
References $_GET, $lng, $tpl, ilObjUser\_getPersonalPicturePath(), getBackUrl(), ilUserUtil\getNamePresentation(), and getUserId().
Referenced by getHTML().
ilPublicUserProfileGUI::setAdditional | ( | $a_additional | ) |
Set Additonal Information.
array | $a_additional | Additonal Information |
Definition at line 75 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setBackUrl | ( | $a_backurl | ) |
Set Back Link URL.
string | $a_backurl | Back Link URL |
Definition at line 95 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 125 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setEmbedded | ( | $a_value, | |
$a_offline = false |
|||
) |
Definition at line 151 of file class.ilPublicUserProfileGUI.php.
ilPublicUserProfileGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 55 of file class.ilPublicUserProfileGUI.php.
Referenced by __construct().
|
staticprotected |
Check if given user id is valid.
Definition at line 633 of file class.ilPublicUserProfileGUI.php.
References ilObject\_lookupType().
ilPublicUserProfileGUI::view | ( | ) |
View.
This one is called e.g. through the goto script
Definition at line 209 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().