1 | <?php |
||
10 | class Statistics implements EventListenerInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Prefix used for the Cache keys. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $_prefix = 'statistics'; |
||
19 | |||
20 | /** |
||
21 | * ImplementedEvents method. |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function implementedEvents() |
||
32 | |||
33 | /** |
||
34 | * Re-count the number of user and find the latest user and write it in the Cache. |
||
35 | * |
||
36 | * @param \Cake\Event\Event $event The event that was fired. |
||
37 | * |
||
38 | * @return array|false |
||
39 | */ |
||
40 | public function newUserStats(Event $event) |
||
59 | |||
60 | /** |
||
61 | * Get the Groups and write it in the Cache. |
||
62 | * |
||
63 | * @param \Cake\Event\Event $event The event that was fired. |
||
64 | * |
||
65 | * @return array|false |
||
66 | */ |
||
67 | public function updateGroupStats(Event $event) |
||
79 | |||
80 | /** |
||
81 | * Write the data into the Cache with the passed key. |
||
82 | * |
||
83 | * @param int|object|string $data The data to save in the Cache. |
||
84 | * @param string $key The key to save the data. |
||
85 | * |
||
86 | * @return bool |
||
87 | */ |
||
88 | protected function _writeCache($data, $key) |
||
101 | } |
||
102 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.