本文整理汇总了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);
}