1 | <?php |
||
30 | class UserEventHandler implements EventListenerInterface |
||
31 | { |
||
32 | |||
33 | /** |
||
34 | * Returns a list of events this object is implementing. |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | public function implementedEvents() |
||
46 | |||
47 | /** |
||
48 | * On success user activation profile. |
||
49 | * |
||
50 | * @param Event $event |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | public function onSuccessActivate(Event $event) |
||
57 | |||
58 | /** |
||
59 | * Global before save user data. |
||
60 | * |
||
61 | * @param Event $event |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | public function onModelBeforeSave(Event $event) |
||
70 | |||
71 | /** |
||
72 | * Global after save user data. |
||
73 | * |
||
74 | * @param Event $event |
||
75 | * |
||
76 | * @return void |
||
77 | * |
||
78 | * TODO : Use return when send message? |
||
79 | */ |
||
80 | public function onModelAfterSave(Event $event) |
||
91 | |||
92 | /** |
||
93 | * Get mailer object. |
||
94 | * |
||
95 | * @param EntityInterface $entity |
||
96 | * @return Email |
||
97 | */ |
||
98 | protected function _getMailer(EntityInterface $entity) |
||
102 | } |
||
103 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.