本文整理汇总了PHP中UserProfile::getProfileInformation方法的典型用法代码示例。如果您正苦于以下问题:PHP UserProfile::getProfileInformation方法的具体用法?PHP UserProfile::getProfileInformation怎么用?PHP UserProfile::getProfileInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserProfile
的用法示例。
在下文中一共展示了UserProfile::getProfileInformation方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UserProfile
if (empty($profile_information)) {
$profileAdd = new UserProfile($GLOBALS['conx']);
$profileAdd->sessionPersistent("ProfileEditSave", "index.php", 3600);
$profileAdd->newAddForm("ProfileEditSave");
$profileAdd->form->addParam("goto", "settings_myinfo.php");
$profileAdd->form->setGotFile(true);
echo $profileAdd->form->getFormHeader();
echo $profileAdd->form->getFormEvent();
} else {
if (is_object($_SESSION['ProfileEditSave'])) {
$ProfileEdit = $_SESSION['ProfileEditSave'];
$ProfileEdit->getProfileInformation((int) $_SESSION['do_User']->iduser);
} else {
$ProfileEdit = new UserProfile($GLOBALS['conx']);
$ProfileEdit->sessionPersistent("ProfileEditSave", "index.php", 120);
$ProfileEdit->getProfileInformation((int) $_SESSION['do_User']->iduser);
}
$ProfileEdit->newUpdateForm('ProfileEditSave');
$ProfileEdit->setRegistry("user_profile");
$ProfileEdit->form->addParam("goto", "settings_myinfo.php");
$ProfileEdit->form->setGotFile(true);
echo $ProfileEdit->form->getFormHeader();
echo $ProfileEdit->form->getFormEvent();
}
?>
<?php
echo $_SESSION['ProfileEditSave']->iduser;
?>
<table class="tplain">
<tr>
示例2: UserProfile
/*$do_contact->getUserContacts($_SESSION['do_coworker']->idcoworker);
if($do_contact->getNumRows()){
// while($do_contact->next()){
$co_workers[] = $do_contact->idcoworker;
$user_picture = $do_contact->picture;
$contact_id = $do_contact->idcontact;
// }
}*/
$user_name = $do_user->getUserNameByIdUser($_SESSION['do_coworker']->idcoworker);
// Get Bio Information
$do_userprofile = new UserProfile();
$profile_information = $do_userprofile->getProfileInformation($_SESSION['do_coworker']->idcoworker);
$job_description = $profile_information['job_description'];
$do_userprofile->free();
if ($user_picture != '') {
$thumb_name = $_SERVER['DOCUMENT_ROOT'] . '/dbimage/thumbnail/' . $user_picture;
if (file_exists($thumb_name)) {
$user_pic = "/dbimage/thumbnail/" . $user_picture;
} else {
$user_pic = "/images/empty_avatar.gif";
}
} else {
$user_pic = '/images/empty_avatar.gif';
}
/* echo '<div style="position:relative;width:100%;">';
echo '<div class="feed_user_pic" style="positon:relative;float:left;overflow:hidden;">';
echo '<a href="/profile/' . $user_name . '" target="_blank"> <img height="50px" alt="" src=' . $user_pic . ' > </a>';
示例3: function
dataType: "html",
success: function(data) {
$('#publicProfile').html(data);
}
});
});
</script>
<div class="layout_center">
<div class="layout_top">
<?php
$id_user = $do_contact->getIdUser($idcontact);
$do_userprofile = new UserProfile();
$profile_information = $do_userprofile->getProfileInformation($id_user);
$ContactWebsite = $_SESSION['do_contact']->getChildContactWebsite();
if ($ContactWebsite->getNumRows()) {
$ContactWebsite->next();
$website_url = $ContactWebsite->website;
} else {
$website_url = '#';
}
if (empty($profile_information)) {
?>
<a href="<?php
echo $website_url;
?>
"><img src="/images/ofuz_logo_profile.png" width="157" height="100" alt="" /></a>
<?php
} else {