...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integrity/volatile/type/requisitefield.php
- Класс: Bitrix\Crm\Integrity\Volatile\Type\RequisiteField
- Вызов: RequisiteField::getValues
public function getValues(int $entityId): array { $values = []; $entityTypeId = $this->getEntityTypeId(); $fieldName = $this->getFieldName(); $countryId = $this->getCountryId(); if ( $this->isAllowedRequisteCountry($countryId) && $this->isAllowedRequisteField($fieldName) ) { $requisite = EntityRequisite::getSingleInstance(); $res = $requisite->getList( [ 'order' => ['SORT' => 'ASC', 'ID' => 'ASC'], 'filter' => [ '=ENTITY_TYPE_ID' => $entityTypeId, '=ENTITY_ID' => $entityId, '=PRESET.COUNTRY_ID' => $countryId ], 'select' => [$fieldName] ] ); if (is_object($res)) { while ($row = $res->fetch()) { if (is_array($row)) { $values = array_merge($values, $this->getValuesFromData($row)); } } } } return $values; }