本文整理匯總了PHP中Lead::get_unlinked_email_query方法的典型用法代碼示例。如果您正苦於以下問題:PHP Lead::get_unlinked_email_query方法的具體用法?PHP Lead::get_unlinked_email_query怎麽用?PHP Lead::get_unlinked_email_query使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Lead
的用法示例。
在下文中一共展示了Lead::get_unlinked_email_query方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testget_unlinked_email_query
public function testget_unlinked_email_query()
{
$lead = new Lead();
$expected = "SELECT emails.id FROM emails JOIN (select DISTINCT email_id from emails_email_addr_rel eear\n\n\tjoin email_addr_bean_rel eabr on eabr.bean_id ='' and eabr.bean_module = 'Leads' and\n\teabr.email_address_id = eear.email_address_id and eabr.deleted=0\n\twhere eear.deleted=0 and eear.email_id not in\n\t(select eb.email_id from emails_beans eb where eb.bean_module ='Leads' and eb.bean_id = '')\n\t) derivedemails on derivedemails.email_id = emails.id";
$actual = $lead->get_unlinked_email_query();
$this->assertSame($expected, $actual);
}