當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。