本文整理匯總了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));
}
示例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'];
}
}
}
示例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);
}