Пример #1
0
 /**
  * @param PointBuilderEvent $event
  */
 public function onPointBuild(PointBuilderEvent $event)
 {
     $action = ['group' => 'mautic.page.point.action', 'label' => 'mautic.page.point.action.pagehit', 'description' => 'mautic.page.point.action.pagehit_descr', 'callback' => ['\\Mautic\\PageBundle\\Helper\\PointActionHelper', 'validatePageHit'], 'formType' => 'pointaction_pagehit'];
     $event->addAction('page.hit', $action);
     $action = ['group' => 'mautic.page.point.action', 'label' => 'mautic.page.point.action.urlhit', 'description' => 'mautic.page.point.action.urlhit_descr', 'callback' => ['\\Mautic\\PageBundle\\Helper\\PointActionHelper', 'validateUrlHit'], 'formType' => 'pointaction_urlhit', 'formTheme' => 'MauticPageBundle:FormTheme\\Point'];
     $event->addAction('url.hit', $action);
 }
Пример #2
0
 /**
  * @param PointBuilderEvent $event
  */
 public function onPointBuild(PointBuilderEvent $event)
 {
     $action = array('group' => 'mautic.email.actions', 'label' => 'mautic.email.point.action.open', 'callback' => array('\\Mautic\\EmailBundle\\Helper\\PointEventHelper', 'validateEmail'), 'formType' => 'emailopen_list');
     $event->addAction('email.open', $action);
     $action = array('group' => 'mautic.email.actions', 'label' => 'mautic.email.point.action.send', 'callback' => array('\\Mautic\\EmailBundle\\Helper\\PointEventHelper', 'validateEmail'), 'formType' => 'emailopen_list');
     $event->addAction('email.send', $action);
 }
Пример #3
0
 /**
  * @param PointBuilderEvent $event
  */
 public function onPointBuild(PointBuilderEvent $event)
 {
     $action = array('group' => 'mautic.asset.actions', 'label' => 'mautic.asset.point.action.download', 'description' => 'mautic.asset.point.action.download_descr', 'callback' => array('\\Mautic\\AssetBundle\\Helper\\PointActionHelper', 'validateAssetDownload'), 'formType' => 'pointaction_assetdownload');
     $event->addAction('asset.download', $action);
 }
Пример #4
0
 /**
  * @param PointBuilderEvent $event
  */
 public function onPointBuild(PointBuilderEvent $event)
 {
     $action = array('group' => 'mautic.form.point.action', 'label' => 'mautic.form.point.action.submit', 'description' => 'mautic.form.point.action.submit_descr', 'callback' => array('\\Mautic\\FormBundle\\Helper\\PointActionHelper', 'validateFormSubmit'), 'formType' => 'pointaction_formsubmit');
     $event->addAction('form.submit', $action);
 }