-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathCustomItemEvents.php
167 lines (148 loc) · 5.17 KB
/
CustomItemEvents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?php
declare(strict_types=1);
namespace MauticPlugin\CustomObjectsBundle;
/**
* Events available for Custom Items.
*/
final class CustomItemEvents
{
/**
* The custom.item.on_pre_save event is fired when a custom item is about to be saved.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_PRE_SAVE = 'custom.item.on_pre_save';
/**
* The custom.item.on_post_save event is fired when a custom item is saved.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_POST_SAVE = 'custom.item.on_post_save';
/**
* The custom.item.on_pre_delete event is fired when a custom item is about to be deleted.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_PRE_DELETE = 'custom.item.on_pre_delete';
/**
* The custom.item.on_post_delete event is fired when a custom item is deleted.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_POST_DELETE = 'custom.item.on_post_delete';
/**
* The custom.item.on_item_dbal_list_query event is fired when custom items list DBAL query is being build.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemListQueryEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_LIST_DBAL_QUERY = 'custom.item.on_item_dbal_list_query';
/**
* The custom.item.on_item_orm_list_query event is fired when custom items list ORM query is being build.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemListQueryEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_LIST_ORM_QUERY = 'custom.item.on_item_orm_list_query';
/**
* The custom.item.on_item_lookup_query event is fired when custom items lookup query is being build.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemListQueryEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_LOOKUP_QUERY = 'custom.item.on_item_lookup_query';
/**
* The custom.item.on_link_entity_id event is fired when a custom item is about to be connected to an (at that time) unknown entity.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemXrefEntityDiscoveryEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_LINK_ENTITY_DISCOVERY = 'custom.item.on_link_entity_id';
/**
* The custom.item.on_link_entity event is fired when a custom item is connected to an entity.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemXrefEntityEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_LINK_ENTITY = 'custom.item.on_link_entity';
/**
* The custom.item.on_unlink_entity event is fired when a custom item is disconnected from an entity.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomItemXrefEntityEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_UNLINK_ENTITY = 'custom.item.on_unlink_entity';
/**
* The custom.item.on_campaign_trigger_action event is fired when the campaign action triggers.
*
* The event listener receives a
*
* @see \Mautic\CampaignBundle\Event\CampaignExecutionEvent
*
* @var string
*/
public const ON_CAMPAIGN_TRIGGER_ACTION = 'custom.item.on_campaign_trigger_action';
/**
* The custom.item.on_campaign_trigger_condition event is fired when the campaign condition triggers.
*
* The event listener receives a
*
* @see \Mautic\CampaignBundle\Event\CampaignExecutionEvent
*
* @var string
*/
public const ON_CAMPAIGN_TRIGGER_CONDITION = 'custom.item.on_campaign_trigger_notification';
/**
* The custom.item.on_custom_item_export event is fired when the custom item is being exported.
*
* @see MauticPlugin\CustomObjectsBundle\Event\CustomItemExportSchedulerEvent
*
* @var string
*/
public const ON_CUSTOM_ITEM_SCHEDULE_EXPORT = 'custom.item.on_custom_item_export_scheduled';
/**
* The custom.item.custom_item_prepare_export_file event is fired when the custom item data is being prepared to be exported.
*
* @see MauticPlugin\CustomObjectsBundle\Event\CustomItemExportSchedulerEvent
*
* @var string
*/
public const CUSTOM_ITEM_PREPARE_EXPORT_FILE = 'custom.item.custom_item_prepare_export_file';
public const CUSTOM_ITEM_MAIL_EXPORT_FILE = 'custom.item.custom_item_mail_export_file';
public const POST_EXPORT_MAIL_SENT = 'custom.item.post_export_mail_sent';
public const ON_PROCESSING_FILE = 'custom.item.on_processing_file';
}