...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmEntityBindingProxy
- Вызов: CCrmEntityBindingProxy::getFieldsInfo
protected function getFieldsInfo() { if(!$this->FIELDS_INFO) { $this->FIELDS_INFO = array( 'SORT' => array( 'TYPE' => 'integer', 'CAPTION' => Loc::getMessage('CRM_REST_ENTITY_BINDING_FIELD_SORT') ), 'IS_PRIMARY' => array( 'TYPE' => 'char', 'CAPTION' => Loc::getMessage('CRM_REST_ENTITY_BINDING_FIELD_IS_PRIMARY') ) ); $entityFieldName = EntityBinding::resolveEntityFieldName($this->entityTypeID); if($entityFieldName !== '') { $this->FIELDS_INFO[$entityFieldName] = array( 'TYPE' => 'integer', 'ATTRIBUTES' => array(\CCrmFieldInfoAttr::Required), 'CAPTION' => \CCrmOwnerType::GetDescription($this->entityTypeID) ); } else { $entityTypeName = CCrmOwnerType::ResolveName($this->entityTypeID); throw new RestException("The entity type '{$entityTypeName}' is not supported in current context."); } } return $this->FIELDS_INFO; }