本文整理汇总了PHP中EmailMarketing::create_new_list_query方法的典型用法代码示例。如果您正苦于以下问题:PHP EmailMarketing::create_new_list_query方法的具体用法?PHP EmailMarketing::create_new_list_query怎么用?PHP EmailMarketing::create_new_list_query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EmailMarketing
的用法示例。
在下文中一共展示了EmailMarketing::create_new_list_query方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
* To make your changes upgrade safe create a file called leadCapture_override.php and place the changes there
*/
$users = array('PUT A RANDOM KEY FROM THE WEBSITE HERE' => array('name' => 'PUT THE USER_NAME HERE', 'pass' => 'PUT THE USER_HASH FOR THE RESPECTIVE USER HERE'));
if (isset($_POST['campaign_id']) && !empty($_POST['campaign_id'])) {
//adding the client ip address
$_POST['client_id_address'] = query_client_ip();
$campaign_id = $_POST['campaign_id'];
$campaign = new Campaign();
$camp_query = "select name,id from campaigns where id='{$campaign_id}'";
$camp_query .= " and deleted=0";
$camp_result = $campaign->db->query($camp_query);
$camp_data = $campaign->db->fetchByAssoc($camp_result);
// Bug 41292 - have to select marketing_id for new lead
$db = DBManagerFactory::getInstance();
$marketing = new EmailMarketing();
$marketing_query = $marketing->create_new_list_query('date_start desc, date_modified desc', "campaign_id = '{$campaign_id}' and status = 'active' and date_start < " . $db->convert('', 'today'), array('id'));
$marketing_result = $db->limitQuery($marketing_query, 0, 1, true);
$marketing_data = $db->fetchByAssoc($marketing_result);
// .Bug 41292
if (isset($_REQUEST['assigned_user_id']) && !empty($_REQUEST['assigned_user_id'])) {
$current_user = new User();
$current_user->retrieve($_REQUEST['assigned_user_id']);
}
if (isset($camp_data) && $camp_data != null) {
$leadForm = new LeadFormBase();
$lead = new Lead();
$prefix = '';
if (!empty($_POST['prefix'])) {
$prefix = $_POST['prefix'];
}
if (empty($lead->id)) {