當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Lead::converted_lead方法代碼示例

本文整理匯總了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, "&nbsp;");
 array_push($ROWVALUES, "<a href='index.php?module=Leads&action=ListView'>{$mod_strings['LBL_BACKTOLEADS']}</a>");
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:ConvertLead.php


注:本文中的Lead::converted_lead方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。