本文整理汇总了PHP中Lead::get_linked_beans方法的典型用法代码示例。如果您正苦于以下问题:PHP Lead::get_linked_beans方法的具体用法?PHP Lead::get_linked_beans怎么用?PHP Lead::get_linked_beans使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lead
的用法示例。
在下文中一共展示了Lead::get_linked_beans方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ContactFormBase
$sugar_smarty->assign("MODULE", $_REQUEST['module']);
if ($error_msg != '') {
$sugar_smarty->assign("ERROR", $error_msg);
}
if (isset($_POST['handle']) && $_POST['handle'] == 'Save') {
require_once 'modules/Contacts/ContactFormBase.php';
$contactForm = new ContactFormBase();
require_once 'modules/Accounts/AccountFormBase.php';
$accountForm = new AccountFormBase();
require_once 'modules/Opportunities/OpportunityFormBase.php';
$oppForm = new OpportunityFormBase();
require_once 'modules/Leads/LeadFormBase.php';
$leadForm = new LeadFormBase();
$lead = new Lead();
$lead->retrieve($_REQUEST['record']);
$linked_beans[] = $lead->get_linked_beans('calls', 'Call');
$linked_beans[] = $lead->get_linked_beans('meetings', 'Meeting');
$linked_beans[] = $lead->get_linked_beans('emails', 'Email');
$GLOBALS['check_notify'] = FALSE;
foreach ($_POST as $k => $v) {
if (is_array($v)) {
$val = encodeMultienumValue($_POST[$k]);
$_POST[$k] = $val;
}
}
$formbody = array();
$sugar_smarty->assign('SAVE_BUTTON_DISPLAY', 'style="display:none;"');
$sugar_smarty->assign('CANCEL_BUTTON_DISPLAY', 'style="display:none;"');
if (!isset($_POST['selectedContact']) && !isset($_POST['ContinueContact'])) {
$duplicateContacts = $contactForm->checkForDuplicates('Contacts');
if (isset($duplicateContacts)) {