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


PHP Opportunity::get_account_detail方法代码示例

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


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

示例1: testget_account_detail

 public function testget_account_detail()
 {
     $opportunity = new Opportunity();
     $result = $opportunity->get_account_detail('1');
     $this->assertTrue(is_array($result));
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:6,代码来源:OpportunityTest.php

示例2: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     if (!empty($this->currency_id)) {
         $currency = new Currency();
         $currency->retrieve($this->currency_id);
         if ($currency->id != $this->currency_id || $currency->deleted == 1) {
             $this->amount = $this->amount_usdollar;
             $this->currency_id = $currency->id;
         }
     }
     //get campaign name
     if (!empty($this->campaign_id)) {
         $camp = new Campaign();
         $camp->retrieve($this->campaign_id);
         $this->campaign_name = $camp->name;
     }
     $this->account_name = '';
     $this->account_id = '';
     if (!empty($this->id)) {
         $ret_values = Opportunity::get_account_detail($this->id);
         if (!empty($ret_values)) {
             $this->account_name = $ret_values['name'];
             $this->account_id = $ret_values['id'];
             $this->account_id_owner = $ret_values['assigned_user_id'];
         }
     }
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:28,代码来源:Opportunity.php

示例3: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     require_once 'modules/Currencies/Currency.php';
     $currency = new Currency();
     $currency->retrieve($this->currency_id);
     if ($currency->id != $this->currency_id || $currency->deleted == 1) {
         $this->amount = $this->amount_usdollar;
         $this->currency_id = $currency->id;
     }
     // Fill in the assigned_user_name
     $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
     $this->account_name = '';
     $this->account_id = '';
     $ret_values = Opportunity::get_account_detail($this->id);
     if (!empty($ret_values)) {
         $this->account_name = $ret_values['name'];
         $this->account_id = $ret_values['id'];
         $this->account_id_owner = $ret_values['assigned_user_id'];
     }
     $this->created_by_name = get_assigned_user_name($this->created_by);
     $this->modified_by_name = get_assigned_user_name($this->modified_user_id);
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:22,代码来源:Opportunity.php


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