Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/filter/ |
Upload File : |
<?php namespace Bitrix\Main\Filter; class UserUFDataProvider extends EntityUFDataProvider { protected $ufReserved = [ 'UF_DEPARTMENT', 'UF_USER_CRM_ENTITY', 'UF_PUBLIC', 'UF_TIMEMAN', 'UF_TM_REPORT_REQ', 'UF_TM_FREE', 'UF_REPORT_PERIOD', 'UF_1C', 'UF_TM_ALLOWED_DELTA', 'UF_SETTING_DATE', 'UF_LAST_REPORT_DATE', 'UF_DELAY_TIME', 'UF_TM_REPORT_DATE', 'UF_TM_DAY', 'UF_TM_TIME', 'UF_TM_REPORT_TPL', 'UF_TM_MIN_DURATION', 'UF_TM_MIN_FINISH', 'UF_TM_MAX_START', 'UF_CONNECTOR_MD5', 'UF_WORK_BINDING', 'UF_IM_SEARCH', 'UF_BXDAVEX_CALSYNC', 'UF_BXDAVEX_MLSYNC', 'UF_UNREAD_MAIL_COUNT', 'UF_BXDAVEX_CNTSYNC', 'UF_BXDAVEX_MAILBOX', 'UF_VI_PASSWORD', 'UF_VI_BACKPHONE', 'UF_VI_PHONE', 'UF_VI_PHONE_PASSWORD' ]; protected function postFilterFields(array $fields) { foreach ($this->getUfReserved() as $ufId) { if (isset($fields[$ufId])) { unset($fields[$ufId]); } } $whiteList = $this->getSettings()->getWhiteList(); if (!empty($whiteList)) { foreach($fields as $ufId => $field) { if (!in_array($ufId, $whiteList)) { unset($fields[$ufId]); } } } return $fields; } }