1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ratio.php
См. документацию.
1<?php
2
3namespace Bitrix\Catalog\Controller;
4
5use Bitrix\Catalog\Access\ActionDictionary;
6use Bitrix\Catalog\MeasureRatioTable;
7use Bitrix\Main\Error;
8use Bitrix\Main\Result;
9
10final class Ratio extends Controller
11{
12 use ListAction; // default listAction realization
13 use GetAction; // default getAction realization
14 use CheckExists; // default implementation of existence check
15
16 //region Actions
17 public function getFieldsAction(): array
18 {
19 return [$this->getServiceItemName() => $this->getViewFields()];
20 }
21
26
31 //endregion
32
33 protected function getEntityTable()
34 {
35 return new MeasureRatioTable();
36 }
37
38 protected function checkModifyPermissionEntity()
39 {
40 $r = new Result();
41
42 if (!$this->accessController->check(ActionDictionary::ACTION_PRICE_GROUP_EDIT))
43 {
44 $r->addError($this->getErrorModifyAccessDenied());
45 }
46
47 return $r;
48 }
49
50 protected function checkReadPermissionEntity()
51 {
52 $r = new Result();
53
54 if (
55 !(
56 $this->accessController->check(ActionDictionary::ACTION_CATALOG_READ)
57 || $this->accessController->check(ActionDictionary::ACTION_PRICE_GROUP_EDIT)
58 )
59 )
60 {
61 $r->addError($this->getErrorReadAccessDenied());
62 }
63 return $r;
64 }
65}
checkModifyPermissionEntity()
Определения ratio.php:38
checkReadPermissionEntity()
Определения ratio.php:50
getEntityTable()
Определения ratio.php:33
getFieldsAction()
Определения ratio.php:17
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
trait CheckExists
Определения checkexists.php:8
trait GetAction
Определения getaction.php:8
trait ListAction
Определения listaction.php:9