本文整理汇总了PHP中Lead::converted_lead方法的典型用法代码示例。如果您正苦于以下问题:PHP Lead::converted_lead方法的具体用法?PHP Lead::converted_lead怎么用?PHP Lead::converted_lead使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lead
的用法示例。
在下文中一共展示了Lead::converted_lead方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$opportunityid = "'" . $opportunity->id . "'";
clone_history($lead->db, $lead->id, $opportunity->id, 'Opportunities');
}
if (isset($contact)) {
//Set relationships to the new contact
foreach ($linked_beans as $linked_bean) {
foreach ($linked_bean as $bean_val) {
$bean_val->load_relationship('contacts');
$bean_val->contacts->add($contact->id);
}
}
}
$lead = new Lead();
$mod_strings = return_module_language($current_language, 'Leads');
$lead->retrieve($_REQUEST['record']);
$lead->converted_lead("'" . $_REQUEST['record'] . "'", $contactid, $accountid, $opportunityid);
if (isset($_POST['selectedLeads']) && sizeof($_POST['selectedLeads']) > 0) {
foreach ($_POST['selectedLeads'] as $aLead) {
$lead->converted_lead("'" . $aLead . "'", $contactid, $accountid, $opportunityid);
}
}
if (isset($call)) {
$call->track_view($current_user->id, 'Calls');
array_push($ROWVALUES, "<LI>" . $mod_strings['LBL_CREATED_CALL'] . " - <a href='index.php?action=DetailView&module=Calls&record=" . $call->id . "'>" . $call->name . "</a>");
}
if (isset($meeting)) {
$meeting->track_view($current_user->id, 'Meetings');
array_push($ROWVALUES, "<LI>" . $mod_strings['LBL_CREATED_MEETING'] . " - <a href='index.php?action=DetailView&module=Meetings&record=" . $meeting->id . "'>" . $meeting->name . "</a>");
}
array_push($ROWVALUES, " ");
array_push($ROWVALUES, "<a href='index.php?module=Leads&action=ListView'>{$mod_strings['LBL_BACKTOLEADS']}</a>");