...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmTimelineBindingRestProxy
- Вызов: CCrmTimelineBindingRestProxy::innerGetList
protected function innerGetList($order, $filter, $select, $navigation, &$errors) { $ownerId = (int)$filter['OWNER_ID']; if(!$this->checkEntityID($ownerId)) { throw new RestException('OWNER_ID is not defined or invalid.'); } $params = [ 'filter' => ['OWNER_ID' => $ownerId] ]; $page = isset($navigation['iNumPage']) ? (int)$navigation['iNumPage'] : 1; $limit = isset($navigation['nPageSize']) ? (int)$navigation['nPageSize'] : CCrmRestService::LIST_LIMIT; $dataRaw = \Bitrix\Crm\Timeline\Entity\TimelineBindingTable::getList($params); $items = []; while ($fields = $dataRaw->fetch()) { $items[] = [ 'OWNER_ID' => $fields['OWNER_ID'], 'ENTITY_ID' => $fields['ENTITY_ID'], 'ENTITY_TYPE' => mb_strtolower(\CCrmOwnerType::ResolveName($fields['ENTITY_TYPE_ID'])) ]; } $dbResult = new CDBResult(); $dbResult->InitFromArray($items); $dbResult->NavStart($limit, false, $page); return $dbResult; }