| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Calendar_RepeatEvents_View extends \App\Controller\Modal |
||
| 16 | { |
||
| 17 | /** {@inheritdoc} */ |
||
| 18 | public $successBtnIcon = 'far fa-save'; |
||
| 19 | |||
| 20 | /** {@inheritdoc} */ |
||
| 21 | public $modalIcon = 'fas fa-save mr-2'; |
||
| 22 | |||
| 23 | /** {@inheritdoc} */ |
||
| 24 | protected $pageTitle = 'LBL_TITLE_TYPE_SAVING'; |
||
| 25 | |||
| 26 | /** {@inheritdoc} */ |
||
| 27 | public $showFooter = false; |
||
| 28 | |||
| 29 | /** {@inheritdoc} */ |
||
| 30 | public $autoRegisterEvents = false; |
||
| 31 | |||
| 32 | /** {@inheritdoc} */ |
||
| 33 | public function checkPermission(App\Request $request) |
||
| 34 | { |
||
| 35 | if ($request->isEmpty('record', true)) { |
||
| 36 | throw new \App\Exceptions\NoPermittedToRecord('ERR_NO_PERMISSIONS_FOR_THE_RECORD', 406); |
||
| 37 | } |
||
| 38 | $recordModel = Vtiger_Record_Model::getInstanceById($request->getInteger('record'), 'Calendar'); |
||
| 39 | if (!$recordModel->isEditable()) { |
||
| 40 | throw new \App\Exceptions\NoPermitted('ERR_PERMISSION_DENIED', 406); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | /** {@inheritdoc} */ |
||
| 45 | public function process(App\Request $request) |
||
| 49 | } |
||
| 50 | } |
||
| 51 |