/
TargetingEvents.php
109 lines (97 loc) · 3.31 KB
/
TargetingEvents.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
<?php
declare(strict_types=1);
/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/
namespace Pimcore\Bundle\PersonalizationBundle\Event;
final class TargetingEvents
{
/**
* Fired when the targeting code is rendered. Allows to add data to the targeting
* code or to change the template completely.
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\TargetingCodeEvent")
*
* @var string
*/
const TARGETING_CODE = 'pimcore.targeting.targeting_code';
/**
* Fired when the VisitorInfo object was built for a request before
* any matching and action handling is applied.
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\TargetingEvent")
*
* @var string
*/
const PRE_RESOLVE = 'pimcore.targeting.pre_resolve';
/**
* Fired after all targeting rules were matched and applied
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\TargetingEvent")
*
* @var string
*/
const POST_RESOLVE = 'pimcore.targeting.post_resolve';
/**
* Fired when a rule matches before any actions are applied
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\TargetingRuleEvent")
*
* @var string
*/
const PRE_RULE_ACTIONS = 'pimcore.targeting.pre_rule_actions';
/**
* Fired when a rule matches after all actions were applied
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\TargetingRuleEvent")
*
* @var string
*/
const POST_RULE_ACTIONS = 'pimcore.targeting.post_rule_actions';
/**
* Fired when a targeting condition is about to be built. Allows to
* build the condition in a custom manner instead of relying on the
* default factory.
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\BuildConditionEvent")
*
* @var string
*/
const BUILD_CONDITION = 'pimcore.targeting.build_condition';
/**
* Fired when a target group which is configured on document settings
* is assigned to a visitor info.
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\AssignDocumentTargetGroupEvent")
*
* @var string
*/
const ASSIGN_DOCUMENT_TARGET_GROUP = 'pimcore.targeting.assign_document_target_group';
/**
* Fired after a condition was used which depends on the count of visited
* pages. Will be used by VisitedPagesCountListener to update the page count
* if there are conditions depending on it.
*
* @Event("Symfony\Component\EventDispatcher\GenericEvent")
*
* @var string
*/
const VISITED_PAGES_COUNT_MATCH = 'pimcore.targeting.visited_pages_count_match';
/**
* Fired before the targeting debug toolbar is rendered
*
* @Event("Pimcore\Bundle\PersonalizationBundle\Event\Targeting\RenderToolbarEvent")
*
* @var string
*/
const RENDER_TOOLBAR = 'pimcore.targeting.render_toolbar';
}