1 | <?php |
||
23 | class ActivityLogController extends FOSRestController implements ClassResourceInterface |
||
24 | { |
||
25 | const EXPORT_COLUMN_DELIMITER = ';'; |
||
26 | const EXPORT_FILENAME = 'activity-log-export'; |
||
27 | |||
28 | /** |
||
29 | * Returns all fields that can be used by list. |
||
30 | * |
||
31 | * @Get("activity-log/fields") |
||
32 | * |
||
33 | * @param Request $request |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function getFieldsAction(Request $request) |
||
|
|||
38 | { |
||
39 | // default contacts list |
||
40 | return $this->handleView( |
||
41 | $this->view( |
||
42 | array_values( |
||
43 | $this->getFieldDescriptors() |
||
44 | ), |
||
45 | 200 |
||
46 | ) |
||
47 | ); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Shows all activity-log-items. |
||
52 | * |
||
53 | * @param Request $request |
||
54 | * |
||
55 | * @Get("activity-log") |
||
56 | * |
||
57 | * @return \Symfony\Component\HttpFoundation\Response |
||
58 | */ |
||
59 | 5 | public function cgetAction(Request $request) |
|
67 | |||
68 | /** |
||
69 | * Create field-descriptor array. |
||
70 | * |
||
71 | * @return FieldDescriptor[] |
||
72 | */ |
||
73 | protected function getFieldDescriptors() |
||
80 | |||
81 | /** |
||
82 | * returns view of files. |
||
83 | * |
||
84 | * @param Request $request |
||
85 | * |
||
86 | * @throws EntityNotFoundException |
||
87 | * |
||
88 | * @return ListRepresentation |
||
89 | */ |
||
90 | 5 | protected function getActivityLogs(Request $request) |
|
129 | } |
||
130 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.