1 | <?php |
||
8 | class UserEvent { |
||
9 | |||
10 | /** |
||
11 | */ |
||
12 | const POST_CREATE = 'core.user.post_create'; |
||
13 | |||
14 | /** |
||
15 | */ |
||
16 | const POST_DELETE = 'core.user.post_delete'; |
||
17 | |||
18 | /** |
||
19 | */ |
||
20 | const POST_GROUP_ADD = 'core.user.post_group_add'; |
||
21 | |||
22 | /** |
||
23 | */ |
||
24 | const POST_GROUP_REMOVE = 'core.user.post_group_add'; |
||
25 | |||
26 | /** |
||
27 | */ |
||
28 | const POST_GROUP_UPDATE = 'core.user.post_group_update'; |
||
29 | |||
30 | /** |
||
31 | */ |
||
32 | const POST_SAVE = 'core.user.post_save'; |
||
33 | |||
34 | /** |
||
35 | */ |
||
36 | const POST_UPDATE = 'core.user.post_update'; |
||
37 | |||
38 | /** |
||
39 | */ |
||
40 | const PRE_CREATE = 'core.user.pre_create'; |
||
41 | |||
42 | /** |
||
43 | */ |
||
44 | const PRE_DELETE = 'core.user.pre_delete'; |
||
45 | |||
46 | /** |
||
47 | */ |
||
48 | const PRE_GROUP_ADD = 'core.user.pre_group_add'; |
||
49 | |||
50 | /** |
||
51 | */ |
||
52 | const PRE_GROUP_REMOVE = 'core.user.pre_group_add'; |
||
53 | |||
54 | /** |
||
55 | */ |
||
56 | const PRE_GROUP_UPDATE = 'core.user.pre_group_update'; |
||
57 | |||
58 | /** |
||
59 | */ |
||
60 | const PRE_SAVE = 'core.user.pre_save'; |
||
61 | |||
62 | /** |
||
63 | */ |
||
64 | const PRE_UPDATE = 'core.user.pre_update'; |
||
65 | |||
66 | /** |
||
67 | * @var keeko.core.model |
||
68 | */ |
||
69 | protected $user; |
||
70 | |||
71 | /** |
||
72 | * @param User $user |
||
73 | */ |
||
74 | public function __construct(User $user) { |
||
77 | |||
78 | /** |
||
79 | * @return User |
||
80 | */ |
||
81 | public function getUser() { |
||
84 | } |
||
85 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.