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


PHP Contact::getContactPicture方法代码示例

本文整理汇总了PHP中Contact::getContactPicture方法的典型用法代码示例。如果您正苦于以下问题:PHP Contact::getContactPicture方法的具体用法?PHP Contact::getContactPicture怎么用?PHP Contact::getContactPicture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Contact的用法示例。


在下文中一共展示了Contact::getContactPicture方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: eventAddFeed

 /**
  * eventAddFeed
  * This event is triggered when the note is added in the 
  * contact.php page.
  * Its the last event and assume that the ContactNoteEditSave has
  * a primary key from the database table.
  * This event action prepare all the data so no additional query is needed
  * in the display table.
  * @param EventControler
  */
 function eventAddFeed(EventControler $evtcl)
 {
     $this->note = $_SESSION['ContactNoteEditSave']->note;
     $this->iduser = $evtcl->iduser_for_feed;
     $this->idcontact = $_SESSION['ContactNoteEditSave']->idcontact;
     $this->idcontact_note = $_SESSION['ContactNoteEditSave']->idcontact_note;
     $user = new User();
     $user->getId($this->iduser);
     $do_contact = new Contact();
     $do_contact->getId($this->idcontact);
     if ($evtcl->added_by_cont == 'Yes') {
         $this->added_by = $do_contact->getContactFullName();
     } else {
         $this->added_by = $user->getFullName();
     }
     $this->contact_full_name = $do_contact->getContactFullName();
     $this->contact_image_url = $do_contact->getContactPicture();
     if (strlen($this->note) > 200) {
         $this->note = substr($this->note, 0, 200);
         $this->more = True;
     } else {
         $this->more = false;
     }
     $user_relation = new ContactSharing();
     $user_array = $user_relation->getCoWorkerByContact($this->idcontact);
     @array_push($user_array, $this->iduser);
     if (!is_array($user_array) || $user_array === false) {
         $user_array = array($evtcl->iduser_for_feed);
     }
     //print_r($user_array);exit;
     $this->addFeed($user_array);
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:42,代码来源:WorkFeedContactNotePortal.class.php

示例2: addTweet

 /**
  * addTweet
  * Prepare all the data for the RSS feed
  * look for Co-Workers associated with the contact
  * and add the users as a feed recipient.
  * @note this is used in a cronjob so no session variables will works.
  * @param ContactNote object
  * @param website url
  * @param note_content (without the link to source)
  */
 function addTweet($do_contact_note, $website, $note_content)
 {
     $do_contact = new Contact();
     $this->idcontact = $do_contact_note->idcontact;
     $do_contact->getId($this->idcontact);
     $this->iduser = $do_contact->iduser;
     if (strlen($note_content) > 200) {
         $this->feed_content = substr($note_content, 0, 200);
     } else {
         $this->feed_content = $note_content;
     }
     $picture = $do_contact->getContactPicture();
     $this->full_contact_name = $do_contact->getContactFullName($this->idcontact);
     //$this->task_event_type = "rss_feed_cron";
     $this->cont_image_url = $picture;
     $this->website_url = $website;
     $user_relation = new ContactSharing();
     $users = $user_relation->getCoWorkerByContact($this->idcontact);
     $users[] = $do_contact->iduser;
     $this->addFeed($users);
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:WorkFeedTwitterImport.class.php

示例3: addUnsubscribeEmailWorkfeed

 /**
  * Function adds workfeed when a contact unsubscibe emails
  * @param object $obj, object containing the contact and user id
  * @param string $responder , name of the responder
  */
 function addUnsubscribeEmailWorkfeed($obj, $responder = "")
 {
     if ($responder == "") {
         $this->note = _('has unsubscribed from emails');
     } else {
         $this->note = _('has unsubscribed from the auto-responder series ') . $responder;
     }
     $this->iduser = $obj->iduser;
     $this->idcontact = $obj->idcontact;
     $user = new User();
     $user->getId($this->iduser);
     $do_contact = new Contact();
     $do_contact->getId($this->idcontact);
     //$this->added_by = $do_contact->getContactFullName();
     $this->contact_full_name = $do_contact->getContactFullName();
     $this->contact_image_url = $do_contact->getContactPicture();
     $user_relation = new ContactSharing();
     $user_array = $user_relation->getCoWorkerByContact($this->idcontact);
     @array_push($user_array, $this->iduser);
     $this->addFeed($user_array);
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:26,代码来源:WorkFeedContactUnsubscibeEmails.class.php

示例4: eventAddFeed

 /**
  * eventAddFeed
  * This event is triggered when the note is added in the 
  * contact.php page.
  * Its the last event and assume that the ContactNoteEditSave has
  * a primary key from the database table.
  * This event action prepare all the data so no additional query is needed
  * in the display table.
  * @param EventControler
  */
 function eventAddFeed(EventControler $evtcl)
 {
     $this->note = $_SESSION['ContactNoteEditSave']->note;
     $this->iduser = $_SESSION['ContactNoteEditSave']->iduser;
     $this->idcontact = $_SESSION['ContactNoteEditSave']->idcontact;
     $this->idcontact_note = $_SESSION['ContactNoteEditSave']->idcontact_note;
     $user = new User();
     $user->getId($this->iduser);
     $this->user_full_name = $user->getFullName();
     $do_contact = new Contact();
     $do_contact->getId($this->idcontact);
     $this->contact_full_name = $do_contact->getContactFullName();
     $this->contact_image_url = $do_contact->getContactPicture();
     if (strlen($this->note) > 200) {
         $this->note = substr($this->note, 0, 200);
         $this->more = True;
     } else {
         $this->more = false;
     }
     $user_relation = new ContactSharing();
     $this->addFeed($user_relation->getCoWorkerByContact($this->idcontact));
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:32,代码来源:WorkFeedContactNote.class.php

示例5:

if ($msg->getMessageFromContext("contact")) {
    echo $msg->displayMessage();
}
?>
        <div class="contact_info">
            <div class="contact_photo_frame">
                <div class="contact_photo" style="overflow:hidden;">
                    <?php 
if ($do_contact->picture == '' || empty($do_contact->picture)) {
    ?>
                    <a href="/contact_edit.php"><img src="/images/empty_avatar.gif" width="100" height="100" alt="" /></a>
                    <?php 
} else {
    ?>
                    <img src="<?php 
    echo $do_contact->getContactPicture();
    ?>
"  height="100%" alt="" />
                    <?php 
}
?>
                </div>
            </div>
            <div class="contact_detail">
				<div id="contact_detail_sub1">
	                <div class="contact_detail_name"><?php 
echo $do_contact->firstname, ' ', $do_contact->lastname;
?>
</div>
	                <div class="contact_detail_company">
	                            <?php 
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:contact.php


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