1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
* MikoPBX - free phone system for small business |
4
|
|
|
* Copyright © 2017-2023 Alexey Portnov and Nikolay Beketov |
5
|
|
|
* |
6
|
|
|
* This program is free software: you can redistribute it and/or modify |
7
|
|
|
* it under the terms of the GNU General Public License as published by |
8
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
9
|
|
|
* (at your option) any later version. |
10
|
|
|
* |
11
|
|
|
* This program is distributed in the hope that it will be useful, |
12
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14
|
|
|
* GNU General Public License for more details. |
15
|
|
|
* |
16
|
|
|
* You should have received a copy of the GNU General Public License along with this program. |
17
|
|
|
* If not, see <https://www.gnu.org/licenses/>. |
18
|
|
|
*/ |
19
|
|
|
|
20
|
|
|
namespace MikoPBX\PBXCoreREST\Controllers\ConferenceRooms; |
21
|
|
|
|
22
|
|
|
|
23
|
|
|
use MikoPBX\PBXCoreREST\Controllers\BaseController; |
24
|
|
|
use MikoPBX\PBXCoreREST\Lib\ConferenceRoomsManagementProcessor; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Handles the POST requests for conference rooms data. |
28
|
|
|
* |
29
|
|
|
* @RoutePrefix("/pbxcore/api/conference-rooms") |
30
|
|
|
* |
31
|
|
|
* @examples |
32
|
|
|
* |
33
|
|
|
*/ |
34
|
|
|
class PostController extends BaseController |
35
|
|
|
{ |
36
|
|
|
/** |
37
|
|
|
* Handles the call to different actions based on the action name |
38
|
|
|
* |
39
|
|
|
* @param string $actionName The name of the action |
40
|
|
|
* |
41
|
|
|
* Deletes the conference room record with its dependent tables. |
42
|
|
|
* @Post("/deleteRecord") |
43
|
|
|
* |
44
|
|
|
* @return void |
45
|
|
|
*/ |
46
|
|
|
public function callAction(string $actionName): void |
47
|
|
|
{ |
48
|
|
|
$data = $this->request->getPost(); |
49
|
|
|
$this->sendRequestToBackendWorker(ConferenceRoomsManagementProcessor::class, $actionName, $data); |
50
|
|
|
} |
51
|
|
|
} |