uawdijnntqw1x1x1
IP : 3.144.97.63
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
/
samara.axolotls.ru
/
bitrix
/
components
/
bitrix
/
main.field.enum
/
class.php
/
/
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); use Bitrix\Main\Component\BaseUfComponent; use Bitrix\Main\UserField\Types\EnumType; use Bitrix\Main\Context; /** * Class EnumUfComponent */ class EnumUfComponent extends BaseUfComponent { public const MAX_OPTION_LENGTH = 40; protected static function getUserTypeId(): string { return EnumType::USER_TYPE_ID; } /** * @return array */ protected function getFieldValue(): array { if( !$this->additionalParameters['bVarsFromForm'] && !isset($this->additionalParameters['VALUE']) ) { if( isset($this->userField['ENTITY_VALUE_ID'], $this->userField['ENUM']) && $this->userField['ENTITY_VALUE_ID'] <= 0 ) { $value = ($this->userField['MULTIPLE'] === 'Y' ? [] : null); foreach($this->userField['ENUM'] as $enum) { if($enum['DEF'] === 'Y') { if($this->userField['MULTIPLE'] === 'Y') { $value[] = $enum['ID']; } else { $value = $enum['ID']; break; } } } } else { $value = $this->userField['VALUE']; } } elseif(isset($this->additionalParameters['VALUE'])) { $value = $this->additionalParameters['VALUE']; } else { $value = Context::getCurrent()->getRequest()->get($this->userField['FIELD_NAME']); } return self::normalizeFieldValue($value); } }
/var/www/axolotl/data/www/samara.axolotls.ru/bitrix/components/bitrix/main.field.enum/class.php