Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventhandler.php
1<?php
9namespace Bitrix\Sale\Sender;
10
11
13{
18 public static function onConnectorListBuyer($data)
19 {
20 $data['CONNECTOR'] = '\Bitrix\Sale\Sender\ConnectorBuyer';
21
22 return $data;
23 }
24
25 public static function onTriggerList($data)
26 {
27 $data['TRIGGER'] = array(
28 '\Bitrix\Sale\Sender\TriggerOrderNew',
29 '\Bitrix\Sale\Sender\TriggerOrderCancel',
30 '\Bitrix\Sale\Sender\TriggerOrderPaid',
31 '\Bitrix\Sale\Sender\TriggerBasketForgotten',
32 '\Bitrix\Sale\Sender\TriggerDontBuy',
33 '\Bitrix\Sale\Sender\TriggerOrderStatusChange',
34 );
35
36 return $data;
37 }
38
39 public static function onConnectorOrder($data)
40 {
41 $data['CONNECTOR'] = '\Bitrix\Sale\Sender\ConnectorOrder';
42
43 return $data;
44 }
45
46 public static function onPresetMailingList()
47 {
48 $resultList = array();
49 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getForgottenCart(1);
50 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getCanceledOrder();
51 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getPaidOrder();
52 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getDontBuy(90);
53 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getDontAuth(111);
54 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getDontBuy(180);
55 $resultList[] = \Bitrix\Sale\Sender\PresetMailing::getDontBuy(360);
56
57 return $resultList;
58 }
59
60 public static function onPresetTemplateList()
61 {
62 $resultList = array();
63
64 return $resultList;
65 }
66}