-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathContactClientEvents.php
86 lines (76 loc) · 2.9 KB
/
ContactClientEvents.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
<?php
/*
* @copyright 2018 Mautic Contributors. All rights reserved
* @author Digital Media Solutions, LLC
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace MauticPlugin\MauticContactClientBundle;
/**
* Class ContactClientEvents.
*
* Events available for MauticContactClientBundle
*/
final class ContactClientEvents
{
/**
* The mautic.contactclient.external_dnc_check event is dispatched after checking stock DNC so that additional
* DNC lists can be checked for versions of Mautic that do not allow injection of additional DNC entries.
* We expect an exception to be thrown of ContactClientException if DNC is found.
*
* The event listener receives a MauticPlugin\MauticContactClientBundle\Event\ContactDncCheckEvent instance.
*/
const EXTERNAL_DNC_CHECK = 'mautic.contactclient.external_dnc_check';
/**
* The mautic.contactclient_post_delete event is dispatched after a contactclient is deleted.
*
* The event listener receives a MauticPlugin\MauticContactClientBundle\Event\ContactClientEvent instance.
*
* @var string
*/
const POST_DELETE = 'mautic.contactclient_post_delete';
/**
* The mautic.contactclient_post_save event is dispatched right after a contactclient is persisted.
*
* The event listener receives a MauticPlugin\MauticContactClientBundle\Event\ContactClientEvent instance.
*
* @var string
*/
const POST_SAVE = 'mautic.contactclient_post_save';
/**
* The mautic.contactclient_pre_delete event is dispatched before a contactclient is deleted.
*
* The event listener receives a MauticPlugin\MauticContactClientBundle\Event\ContactClientEvent instance.
*
* @var string
*/
const PRE_DELETE = 'mautic.contactclient_pre_delete';
/**
* The mautic.contactclient_pre_save event is dispatched right before a contactclient is persisted.
*
* The event listener receives a MauticPlugin\MauticContactClientBundle\Event\ContactClientEvent instance.
*
* @var string
*/
const PRE_SAVE = 'mautic.contactclient_pre_save';
/**
* The mautic.contactclient_stat_save event is dispatched after a Contact Client Stat is saved.
*
* The event listener receives a MauticPlugin\MauticContactClientBundle\Event\ContactClientStatEvent instance.
*
* @var string
*/
const STAT_SAVE = 'mautic.contactclient_stat_save';
/**
* The mautic.contactclient_timeline_on_generate event is dispatched when generating a timeline view.
*
* The event listener receives a
* MauticPlugin\MauticContactClientBundle\Event\LeadTimelineEvent instance.
*
* @var string
*/
const TIMELINE_ON_GENERATE = 'mautic.contactclient_timeline_on_generate';
const TRANSACTIONS_ON_GENERATE = 'mautic.contactclient_transactions_on_generate';
}