1 | <?php |
||
10 | class Statistics implements EventListenerInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * ImplementedEvents method. |
||
15 | * |
||
16 | * @return array |
||
17 | */ |
||
18 | public function implementedEvents() |
||
25 | |||
26 | /** |
||
27 | * Re-count the number of user and find the latest user and write it in the Cache. |
||
28 | * |
||
29 | * @param \Cake\Event\Event $event The event that was fired. |
||
30 | * |
||
31 | * @return array|false |
||
32 | */ |
||
33 | public function newUserStats(Event $event) |
||
52 | |||
53 | /** |
||
54 | * Get the Groups and write it in the Cache. |
||
55 | * |
||
56 | * @param \Cake\Event\Event $event The event that was fired. |
||
57 | * |
||
58 | * @return array|false |
||
59 | */ |
||
60 | public function updateGroupStats(Event $event) |
||
72 | |||
73 | /** |
||
74 | * Write the data into the Cache with the passed key. |
||
75 | * |
||
76 | * @param int|object|string $data The data to save in the Cache. |
||
77 | * @param string $key The key to save the data. |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | protected function _writeCache($data, $key) |
||
94 | } |
||
95 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.