4namespace Bitrix\Catalog\Controller;
6use Bitrix\Catalog\Access\AccessController;
7use Bitrix\Catalog\Access\ActionDictionary;
8use Bitrix\Catalog\Model\Event;
9use Bitrix\Catalog\RestView\CatalogViewManager;
10use Bitrix\Main\Engine\Action;
11use Bitrix\Main\Engine\Response\Converter;
13use Bitrix\Main\ORM\Data\DataManager;
14use Bitrix\Main\ORM\Entity;
15use Bitrix\Rest\Event\EventBind;
16use Bitrix\Rest\Event\EventBindInterface;
17use Bitrix\Rest\Integration\Controller\Base;
48 $this->accessController = AccessController::getCurrent();
120 return $view->prepareFieldInfos($view->getFields());
131 return $this->getEntityTable()::
getEntity();
134 private function getServiceName(): string
136 return (
new \ReflectionClass($this))->getShortName();
141 $converter =
new Converter(Converter::TO_UPPER | Converter::TO_SNAKE_DIGIT);
143 return $converter->process($this->getServiceName());
153 $converter =
new Converter(Converter::TO_CAMEL | Converter::LC_FIRST);
202 return [EventBind::class,
'processItemEvent'];
210 return (
new EventBind(static::class))->getHandlers(static::getBindings());
225 Event::makeEventName($class,DataManager::EVENT_ON_AFTER_ADD) =>
$entity->getModule().
'.'.
$entity->getName().
'.on.add',
226 Event::makeEventName($class,DataManager::EVENT_ON_AFTER_UPDATE) =>
$entity->getModule().
'.'.
$entity->getName().
'.on.update',
227 Event::makeEventName($class,DataManager::EVENT_ON_DELETE) =>
$entity->getModule().
'.'.
$entity->getName().
'.on.delete',
const IBLOCK_ELEMENT_READ
const IBLOCK_ELEMENT_EDIT
static getCallbackRestEvent()
const IBLOCK_ELEMENT_DELETE
getErrorCodeEntityNotExists()
const IBLOCK_SECTION_EDIT
getErrorCodeModifyAccessDenied()
getErrorEntityNotExists()
const IBLOCK_SECTION_DELETE
getErrorModifyAccessDenied()
const IBLOCK_SECTION_SECTION_BIND
getErrorReadAccessDenied()
const ERROR_ACCESS_DENIED
const IBLOCK_ELEMENT_SECTION_BIND
const IBLOCK_ELEMENT_EDIT_PRICE
AccessController $accessController
getErrorCodeReadAccessDenied()
static getNavData($start, $orm=false)
createViewManager(Action $action)
const IBLOCK_SECTION_READ
addErrorEntityNotExists()
const MODIFY_PERMISSION_ACCESS_DENIED
const READ_PERMISSION_ACCESS_DENIED
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)