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


PHP SugarEmailAddress::getPrimaryAddress方法代码示例

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


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

示例1: get_list_view_data

 /**
  * @see parent::get_list_view_data()
  */
 public function get_list_view_data()
 {
     global $system_config, $current_user;
     $temp_array = $this->get_list_view_array();
     $temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
     $this->email1 = $temp_array['EMAIL1'];
     $temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
     return $temp_array;
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:12,代码来源:Company.php

示例2: get_list_view_data

 /**
  * @see parent::get_list_view_data()
  *
  * @return array
  */
 public function get_list_view_data()
 {
     global $system_config, $current_user;
     $this->_create_proper_name_field();
     $temp_array = $this->get_list_view_array();
     $temp_array['NAME'] = $this->name;
     $temp_array["ENCODED_NAME"] = $this->full_name;
     $temp_array["FULL_NAME"] = $this->full_name;
     $temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
     $this->email1 = $temp_array['EMAIL1'];
     $temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
     return $temp_array;
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:18,代码来源:Person.php

示例3: array

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     //TODO:  Seems odd we need to clear out these values so that list views don't show the previous rows value if current value is blank
     $this->getRelatedFields('Contacts', $this->contact_id, array('name' => 'contact_name', 'phone_work' => 'contact_phone'));
     if (!empty($this->contact_name)) {
         $emailAddress = new SugarEmailAddress();
         $this->contact_email = $emailAddress->getPrimaryAddress(false, $this->contact_id, 'Contacts');
     }
     if (isset($this->contact_id) && $this->contact_id != '') {
         $contact = new Contact();
         $contact->retrieve($this->contact_id);
         if (isset($contact->id)) {
             $this->contact_name = $contact->full_name;
         }
     }
 }
开发者ID:omusico,项目名称:windcrm,代码行数:17,代码来源:Note.php


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