/**
  * Add the option to the list.
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $trigger = ['label' => 'mautic.form.campaign.event.submit', 'description' => 'mautic.form.campaign.event.submit_descr', 'formType' => 'campaignevent_formsubmit', 'eventName' => FormEvents::ON_CAMPAIGN_TRIGGER_DECISION];
     $event->addDecision('form.submit', $trigger);
     $trigger = ['label' => 'mautic.form.campaign.event.field_value', 'description' => 'mautic.form.campaign.event.field_value_descr', 'formType' => 'campaignevent_form_field_value', 'formTheme' => 'MauticFormBundle:FormTheme\\FieldValueCondition', 'eventName' => FormEvents::ON_CAMPAIGN_TRIGGER_CONDITION];
     $event->addCondition('form.field_value', $trigger);
 }
Exemple #2
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $trigger = ['label' => 'mautic.email.campaign.event.open', 'description' => 'mautic.email.campaign.event.open_descr', 'eventName' => EmailEvents::ON_CAMPAIGN_TRIGGER_DECISION, 'associatedActions' => ['email.send']];
     $event->addLeadDecision('email.open', $trigger);
     $action = ['label' => 'mautic.email.campaign.event.send', 'description' => 'mautic.email.campaign.event.send_descr', 'eventName' => EmailEvents::ON_CAMPAIGN_TRIGGER_ACTION, 'formType' => 'emailsend_list', 'formTypeOptions' => ['update_select' => 'campaignevent_properties_email', 'with_email_types' => true], 'formTheme' => 'MauticEmailBundle:FormTheme\\EmailSendList'];
     $event->addAction('email.send', $action);
 }
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $action = array('label' => 'mautic.customcrm.opportunity.events.create', 'description' => 'mautic.customcrm.opportunity.events.create_descr', 'formType' => 'customcrm_campaign_opportunity', 'callback' => array('\\MauticPlugin\\CustomCrmBundle\\Helper\\CampaignEventHelper', 'createOpportunity'));
     $event->addAction('opportunity.create', $action);
     $action = array('label' => 'ddi.lead_actions.tasks.campaign.event.add', 'description' => 'ddi.lead_actions.tasks.campaign.event.add.description', 'callback' => array('\\MauticPlugin\\CustomCrmBundle\\Helper\\CampaignEventHelper', 'addTaskAction'), 'formType' => 'task', 'formTypeOptions' => array('type' => 'campaignBuilder'));
     $event->addAction('task.add', $action);
 }
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $trigger = array('label' => 'mautic.email.campaign.event.open', 'description' => 'mautic.email.campaign.event.open_descr', 'callback' => array('\\Mautic\\EmailBundle\\Helper\\CampaignEventHelper', 'validateEmailTrigger'));
     $event->addLeadDecision('email.open', $trigger);
     $action = array('label' => 'mautic.email.campaign.event.send', 'description' => 'mautic.email.campaign.event.send_descr', 'callback' => array('\\Mautic\\EmailBundle\\Helper\\CampaignEventHelper', 'sendEmailAction'), 'formType' => 'emailsend_list', 'formTypeOptions' => array('update_select' => 'campaignevent_properties_email'), 'formTheme' => 'MauticEmailBundle:FormTheme\\EmailSendList');
     $event->addAction('email.send', $action);
 }
 /**
  * Add the option to the list
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $trigger = array('label' => 'mautic.form.campaign.event.submit', 'description' => 'mautic.form.campaign.event.submit_descr', 'formType' => 'campaignevent_formsubmit', 'callback' => array('\\Mautic\\FormBundle\\Helper\\CampaignEventHelper', 'validateFormSubmit'));
     $event->addLeadDecision('form.submit', $trigger);
     $trigger = array('label' => 'mautic.form.campaign.event.field_value', 'description' => 'mautic.form.campaign.event.field_value_descr', 'formType' => 'campaignevent_form_field_value', 'formTheme' => 'MauticFormBundle:FormTheme\\FieldValueCondition', 'callback' => array('\\Mautic\\FormBundle\\Helper\\CampaignEventHelper', 'validateFormValue'));
     $event->addLeadCondition('form.field_value', $trigger);
 }
 /**
  * Add event triggers and actions
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     //Add actions
     $action = array('label' => 'mautic.lead.lead.events.changepoints', 'description' => 'mautic.lead.lead.events.changepoints_descr', 'formType' => 'leadpoints_action', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::changePoints');
     $event->addAction('lead.changepoints', $action);
     $action = array('label' => 'mautic.lead.lead.events.changelist', 'description' => 'mautic.lead.lead.events.changelist_descr', 'formType' => 'leadlist_action', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::changeLists');
     $event->addAction('lead.changelist', $action);
     $action = array('label' => 'mautic.lead.lead.events.updatelead', 'description' => 'mautic.lead.lead.events.updatelead_descr', 'formType' => 'updatelead_action', 'formTheme' => 'MauticLeadBundle:FormTheme\\ActionUpdateLead', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::updateLead');
     $event->addAction('lead.updatelead', $action);
 }
 /**
  * Add event triggers and actions.
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     //Add actions
     $action = ['label' => 'mautic.lead.lead.events.changepoints', 'description' => 'mautic.lead.lead.events.changepoints_descr', 'formType' => 'leadpoints_action', 'eventName' => LeadEvents::ON_CAMPAIGN_TRIGGER_ACTION];
     $event->addAction('lead.changepoints', $action);
     $action = ['label' => 'mautic.lead.lead.events.changelist', 'description' => 'mautic.lead.lead.events.changelist_descr', 'formType' => 'leadlist_action', 'eventName' => LeadEvents::ON_CAMPAIGN_TRIGGER_ACTION];
     $event->addAction('lead.changelist', $action);
     $action = ['label' => 'mautic.lead.lead.events.updatelead', 'description' => 'mautic.lead.lead.events.updatelead_descr', 'formType' => 'updatelead_action', 'formTheme' => 'MauticLeadBundle:FormTheme\\ActionUpdateLead', 'eventName' => LeadEvents::ON_CAMPAIGN_TRIGGER_ACTION];
     $event->addAction('lead.updatelead', $action);
     $action = ['label' => 'mautic.lead.lead.events.changetags', 'description' => 'mautic.lead.lead.events.changetags_descr', 'formType' => 'modify_lead_tags', 'eventName' => LeadEvents::ON_CAMPAIGN_TRIGGER_ACTION];
     $event->addAction('lead.changetags', $action);
     $action = ['label' => 'mautic.lead.lead.events.addtocompany', 'description' => 'mautic.lead.lead.events.addtocompany_descr', 'formType' => 'addtocompany_action', 'eventName' => LeadEvents::ON_CAMPAIGN_TRIGGER_ACTION];
     $event->addAction('lead.addtocompany', $action);
     $trigger = ['label' => 'mautic.lead.lead.events.field_value', 'description' => 'mautic.lead.lead.events.field_value_descr', 'formType' => 'campaignevent_lead_field_value', 'formTheme' => 'MauticLeadBundle:FormTheme\\FieldValueCondition', 'eventName' => LeadEvents::ON_CAMPAIGN_TRIGGER_CONDITION];
     $event->addCondition('lead.field_value', $trigger);
 }
 /**
  * Add event triggers and actions
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     //Add actions
     $action = array('label' => 'mautic.lead.lead.events.changepoints', 'description' => 'mautic.lead.lead.events.changepoints_descr', 'formType' => 'leadpoints_action', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::changePoints');
     $event->addAction('lead.changepoints', $action);
     $action = array('label' => 'mautic.lead.lead.events.changelist', 'description' => 'mautic.lead.lead.events.changelist_descr', 'formType' => 'leadlist_action', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::changeLists');
     $event->addAction('lead.changelist', $action);
     $action = array('label' => 'mautic.lead.lead.events.updatelead', 'description' => 'mautic.lead.lead.events.updatelead_descr', 'formType' => 'updatelead_action', 'formTheme' => 'MauticLeadBundle:FormTheme\\ActionUpdateLead', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::updateLead');
     $event->addAction('lead.updatelead', $action);
     $action = array('label' => 'mautic.lead.lead.events.changetags', 'description' => 'mautic.lead.lead.events.changetags_descr', 'formType' => 'modify_lead_tags', 'callback' => '\\Mautic\\LeadBundle\\Helper\\EventHelper::updateTags');
     $event->addAction('lead.changetags', $action);
     $trigger = array('label' => 'mautic.lead.lead.events.field_value', 'description' => 'mautic.lead.lead.events.field_value_descr', 'formType' => 'campaignevent_lead_field_value', 'formTheme' => 'MauticLeadBundle:FormTheme\\FieldValueCondition', 'callback' => '\\Mautic\\LeadBundle\\Helper\\CampaignEventHelper::validateFormValue');
     $event->addLeadCondition('lead.field_value', $trigger);
 }
Exemple #9
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     if ($this->factory->getParameter('sms_enabled')) {
         $event->addAction('sms.send_text_sms', ['label' => 'mautic.campaign.sms.send_text_sms', 'description' => 'mautic.campaign.sms.send_text_sms.tooltip', 'eventName' => SmsEvents::ON_CAMPAIGN_TRIGGER_ACTION, 'formType' => 'smssend_list', 'formTypeOptions' => ['update_select' => 'campaignevent_properties_sms'], 'formTheme' => 'MauticSmsBundle:FormTheme\\SmsSendList', 'timelineTemplate' => 'MauticSmsBundle:SubscribedEvents\\Timeline:index.html.php']);
     }
 }
 /**
  * Add event triggers and actions
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     //Add trigger
     $pageHitTrigger = array('label' => 'mautic.page.campaign.event.pagehit', 'description' => 'mautic.page.campaign.event.pagehit_descr', 'formType' => 'campaignevent_pagehit', 'callback' => '\\Mautic\\PageBundle\\Helper\\CampaignEventHelper::onPageHit');
     $event->addLeadDecision('page.pagehit', $pageHitTrigger);
 }
Exemple #11
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $action = array('label' => 'mautic.social.twitter.tweet.event.open', 'description' => 'mautic.social.twitter.tweet.event.open_desc', 'eventName' => SocialEvents::ON_CAMPAIGN_TRIGGER_ACTION, 'formType' => 'twitter_tweet', 'formTheme' => 'MauticSocialBundle:FormTheme\\Campaigns');
     $event->addAction('twitter.tweet', $action);
 }
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     if ($this->factory->getParameter('sms_enabled')) {
         $event->addAction('sms.send_text_sms', array('label' => 'mautic.campaign.sms.send_text_sms', 'description' => 'mautic.campaign.sms.send_text_sms.tooltip', 'callback' => array('\\Mautic\\SmsBundle\\Helper\\SmsHelper', 'send'), 'formType' => 'smssend_list', 'formTypeOptions' => array('update_select' => 'campaignevent_properties_sms'), 'formTheme' => 'MauticSmsBundle:FormTheme\\SmsSendList', 'timelineTemplate' => 'MauticSmsBundle:SubscribedEvents\\Timeline:index.html.php'));
     }
 }
Exemple #13
0
 /**
  * Add event triggers and actions
  *
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     //Add trigger
     $pageHitTrigger = array('label' => 'mautic.page.campaign.event.pagehit', 'description' => 'mautic.page.campaign.event.pagehit_descr', 'formType' => 'campaignevent_pagehit', 'eventName' => PageEvents::ON_CAMPAIGN_TRIGGER_DECISION);
     $event->addLeadDecision('page.pagehit', $pageHitTrigger);
 }
Exemple #14
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $action = ['label' => 'mautic.plugin.actions.push_lead', 'description' => 'mautic.plugin.actions.tooltip', 'formType' => 'integration_list', 'formTheme' => 'MauticPluginBundle:FormTheme\\Integration', 'eventName' => PluginEvents::ON_CAMPAIGN_TRIGGER_ACTION];
     $event->addAction('plugin.leadpush', $action);
 }
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $trigger = array('label' => 'mautic.asset.campaign.event.download', 'description' => 'mautic.asset.campaign.event.download_descr', 'callback' => array('\\Mautic\\AssetBundle\\Helper\\CampaignEventHelper', 'validateAssetDownloadTrigger'), 'formType' => 'campaignevent_assetdownload');
     $event->addLeadDecision('asset.download', $trigger);
 }
Exemple #16
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $action = array('label' => 'mautic.plugin.actions.push_lead', 'description' => 'mautic.plugin.actions.tooltip', 'formType' => 'integration_list', 'formTheme' => 'MauticPluginBundle:FormTheme\\Integration', 'callback' => array('\\Mautic\\PluginBundle\\Helper\\EventHelper', 'pushLead'));
     $event->addAction('plugin.leadpush', $action);
 }
Exemple #17
0
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $event->addAction('dwc.push_content', ['label' => 'mautic.dynamicContent.campaign.send_dwc', 'description' => 'mautic.dynamicContent.campaign.send_dwc.tooltip', 'eventName' => DynamicContentEvents::ON_CAMPAIGN_TRIGGER_ACTION, 'formType' => 'dwcsend_list', 'formTypeOptions' => ['update_select' => 'campaignevent_properties_dynamicContent'], 'formTheme' => 'MauticDynamicContentBundle:FormTheme\\DynamicContentPushList', 'timelineTemplate' => 'MauticDynamicContentBundle:SubscribedEvents\\Timeline:index.html.php', 'hideTriggerMode' => true, 'associatedDecisions' => ['dwc.decision'], 'anchorRestrictions' => ['decision.inaction']]);
     $event->addLeadDecision('dwc.decision', ['label' => 'mautic.dynamicContent.campaign.decision_dwc', 'description' => 'mautic.dynamicContent.campaign.decision_dwc.tooltip', 'eventName' => DynamicContentEvents::ON_CAMPAIGN_TRIGGER_DECISION, 'formType' => 'dwcdecision_list', 'formTypeOptions' => ['update_select' => 'campaignevent_properties_dynamicContent'], 'formTheme' => 'MauticDynamicContentBundle:FormTheme\\DynamicContentDecisionList']);
 }
Exemple #18
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $trigger = ['label' => 'mautic.asset.campaign.event.download', 'description' => 'mautic.asset.campaign.event.download_descr', 'eventName' => AssetEvents::ON_CAMPAIGN_TRIGGER_DECISION, 'formType' => 'campaignevent_assetdownload'];
     $event->addLeadDecision('asset.download', $trigger);
 }
Exemple #19
0
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     $action = array('label' => 'mautic.stage.campaign.event.change', 'description' => 'mautic.stage.campaign.event.change_descr', 'eventName' => StageEvents::ON_CAMPAIGN_TRIGGER_ACTION, 'formType' => 'stageaction_change', 'formTheme' => 'MauticStageBundle:FormTheme\\StageActionChange');
     $event->addAction('stage.change', $action);
 }
 /**
  * @param CampaignBuilderEvent $event
  */
 public function onCampaignBuild(CampaignBuilderEvent $event)
 {
     if ($this->coreParametersHelper->getParameter('notification_enabled')) {
         $event->addAction('notification.send_notification', ['label' => 'mautic.notification.campaign.send_notification', 'description' => 'mautic.notification.campaign.send_notification.tooltip', 'eventName' => NotificationEvents::ON_CAMPAIGN_TRIGGER_ACTION, 'formType' => 'notificationsend_list', 'formTypeOptions' => ['update_select' => 'campaignevent_properties_notification'], 'formTheme' => 'MauticNotificationBundle:FormTheme\\NotificationSendList', 'timelineTemplate' => 'MauticNotificationBundle:SubscribedEvents\\Timeline:index.html.php']);
     }
 }
 /**
  * Add event triggers and actions
  *
  * @param Events\CampaignBuilderEvent $event
  */
 public function onCampaignBuild(Events\CampaignBuilderEvent $event)
 {
     //Add action to actually add/remove lead to a specific lists
     $addRemoveLeadAction = array('label' => 'mautic.campaign.event.addremovelead', 'description' => 'mautic.campaign.event.addremovelead_descr', 'formType' => 'campaignevent_addremovelead', 'formTypeOptions' => array('include_this' => true), 'callback' => '\\Mautic\\CampaignBundle\\Helper\\CampaignEventHelper::addRemoveLead');
     $event->addAction('campaign.addremovelead', $addRemoveLeadAction);
 }