uawdijnntqw1x1x1
IP : 3.147.67.34
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
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,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
modules
/
main
/
lib
/
userfield
/
configcomponent.php
/
/
<?php namespace Bitrix\Main\UserField; use Bitrix\Main\Application; use Bitrix\Main\Error; use Bitrix\Main\ErrorCollection; use Bitrix\Main\Localization\Loc; abstract class ConfigComponent extends \CBitrixComponent { public const ERROR_CODE_NO_MODULE_ERROR = 'UF_CONFIG_NO_MODULE'; /** @var \Bitrix\Main\UserField\UserFieldAccess */ protected $access; protected $entityId = ''; protected $moduleId; /** @var ErrorCollection */ protected $errorCollection; protected $userTypes; protected function init(): void { $this->errorCollection = new ErrorCollection(); $request = Application::getInstance()->getContext()->getRequest(); $this->entityId = $this->arParams['entityId'] ?: $request->get('entityId'); $this->moduleId = $this->arParams['moduleId'] ?: $request->get('moduleId'); if(!$this->moduleId) { $this->errorCollection[] = $this->getNoModuleError(); return; } $this->access = UserFieldAccess::getInstance($this->moduleId); if(!$this->access) { $this->errorCollection[] = $this->getAccessDeniedError(); return; } } protected function getNoModuleError(): Error { return new Error(Loc::getMessage('MAIN_USER_FIELD_CONFIG_COMPONENT_NO_MODULE_ERROR'), static::ERROR_CODE_NO_MODULE_ERROR); } protected function getAccessDeniedError(): Error { return new Error(Loc::getMessage('MAIN_USER_FIELD_CONFIG_COMPONENT_ACCESS_DENIED_ERROR'), static::ERROR_CODE_NO_MODULE_ERROR); } protected function getUserTypes(): array { if(!$this->userTypes) { global $USER_FIELD_MANAGER; $this->userTypes = $USER_FIELD_MANAGER->GetUserType(); $restrictedTypes = $this->access->getRestrictedTypes(); foreach($restrictedTypes as $typeId) { unset($this->userTypes[$typeId]); } } return $this->userTypes; } protected function setTitle(string $title): void { global $APPLICATION; $APPLICATION->SetTitle($title); } }
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/main/lib/userfield/configcomponent.php