...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmEntityBindingProxy
- Вызов: CCrmEntityBindingProxy::setEntityTypeID
public function setEntityTypeID($entityTypeID) { if(is_int($entityTypeID)) { $entityTypeID = (int)$entityTypeID; } if(!CCrmOwnerType::IsDefined($entityTypeID)) { throw new RestException("Parameter 'entityTypeID' is not defined"); } if($entityTypeID !== CCrmOwnerType::Company && $entityTypeID !== CCrmOwnerType::Contact) { $entityTypeName = CCrmOwnerType::ResolveName($entityTypeID); throw new RestException("The entity type '{$entityTypeName}' is not supported in current context."); } $this->entityTypeID = $entityTypeID; }