1 | <?php |
||
16 | class StatisticsController extends AuthorizedController |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected $resource = 'statistics'; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | protected $resourceMethodsWithoutModels = [ |
||
27 | 'agents', |
||
28 | 'geoips', |
||
29 | 'devices', |
||
30 | 'paths', |
||
31 | 'platforms', |
||
32 | 'requests', |
||
33 | 'routes', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function authorizeResource($model, $parameter = null, array $options = [], $request = null): void |
||
51 | |||
52 | /** |
||
53 | * Show statistics index. |
||
54 | * |
||
55 | * @return \Illuminate\View\View |
||
56 | */ |
||
57 | public function index() |
||
61 | |||
62 | /** |
||
63 | * List all agents. |
||
64 | * |
||
65 | * @param \Cortex\Statistics\DataTables\Adminarea\AgentsDataTable $agentsDataTable |
||
66 | * |
||
67 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
68 | */ |
||
69 | public function agents(AgentsDataTable $agentsDataTable) |
||
76 | |||
77 | /** |
||
78 | * List all geoips. |
||
79 | * |
||
80 | * @param \Cortex\Statistics\DataTables\Adminarea\GeoipsDataTable $geoipsDataTable |
||
81 | * |
||
82 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
83 | */ |
||
84 | public function geoips(GeoipsDataTable $geoipsDataTable) |
||
91 | |||
92 | /** |
||
93 | * List all devices. |
||
94 | * |
||
95 | * @param \Cortex\Statistics\DataTables\Adminarea\DevicesDataTable $devicesDataTable |
||
96 | * |
||
97 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
98 | */ |
||
99 | public function devices(DevicesDataTable $devicesDataTable) |
||
106 | |||
107 | /** |
||
108 | * List all paths. |
||
109 | * |
||
110 | * @param \Cortex\Statistics\DataTables\Adminarea\PathsDataTable $pathsDataTable |
||
111 | * |
||
112 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
113 | */ |
||
114 | public function paths(PathsDataTable $pathsDataTable) |
||
121 | |||
122 | /** |
||
123 | * List all platforms. |
||
124 | * |
||
125 | * @param \Cortex\Statistics\DataTables\Adminarea\PlatformsDataTable $platformsDataTable |
||
126 | * |
||
127 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
128 | */ |
||
129 | public function platforms(PlatformsDataTable $platformsDataTable) |
||
136 | |||
137 | /** |
||
138 | * List all requests. |
||
139 | * |
||
140 | * @param \Cortex\Statistics\DataTables\Adminarea\RequestsDataTable $requestsDataTable |
||
141 | * |
||
142 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
143 | */ |
||
144 | public function requests(RequestsDataTable $requestsDataTable) |
||
151 | |||
152 | /** |
||
153 | * List all routes. |
||
154 | * |
||
155 | * @param \Cortex\Statistics\DataTables\Adminarea\RoutesDataTable $routesDataTable |
||
156 | * |
||
157 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
158 | */ |
||
159 | public function routes(RoutesDataTable $routesDataTable) |
||
166 | } |
||
167 |