-
Notifications
You must be signed in to change notification settings - Fork 16
/
CustomObjectEvents.php
77 lines (69 loc) · 2.15 KB
/
CustomObjectEvents.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
<?php
declare(strict_types=1);
namespace MauticPlugin\CustomObjectsBundle;
/**
* Events available for Custom Objects.
*/
final class CustomObjectEvents
{
/**
* The custom.object.on_pre_save event is fired when a custom object is about to be saved.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomObjectEvent
*
* @var string
*/
public const ON_CUSTOM_OBJECT_PRE_SAVE = 'custom.object.on_pre_save';
/**
* The custom.object.on_post_save event is fired when a custom object is saved.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomObjectEvent
*
* @var string
*/
public const ON_CUSTOM_OBJECT_POST_SAVE = 'custom.object.on_post_save';
/**
* The custom.object.on_pre_delete event is fired when a custom object is about to be deleted.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomObjectEvent
*
* @var string
*/
public const ON_CUSTOM_OBJECT_PRE_DELETE = 'custom.object.on_pre_delete';
/**
* The custom.object.ui.pre_delete event is fired when a user initiates custom object deletion.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomObjectEvent
*
* @var string
*/
public const ON_CUSTOM_OBJECT_USER_PRE_DELETE = 'custom.object.ui.pre_delete';
/**
* The custom.object.on_post_delete event is fired when a custom object is deleted.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomObjectEvent
*
* @var string
*/
public const ON_CUSTOM_OBJECT_POST_DELETE = 'custom.object.on_post_delete';
/**
* The custom.object.list.format event is fired when a list of custom object values needs to be formatted.
*
* The event listener receives a
*
* @see \MauticPlugin\CustomObjectsBundle\Event\CustomObjectListFormatEvent
*
* @var string
*/
public const ON_CUSTOM_OBJECT_LIST_FORMAT = 'custom.object.list.format';
}