当前位置: 首页>>代码示例>>PHP>>正文


PHP UserProfile::getProfileInformation方法代码示例

本文整理汇总了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>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:profile_edit.php

示例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>';
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:co_workers.php

示例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 {
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:public_profile.php


注:本文中的UserProfile::getProfileInformation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。