- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/connectors/client.php
- Класс: Bitrix\Sender\Integration\Crm\Connectors\Client
- Вызов: Client::getLimitedQueries
public function getLimitedQueries(int $offset, int $limit, string $excludeType = null): array { $queries = array(); $clientType = $this->getFieldValue('CLIENT_TYPE'); if (!$clientType || $clientType === \CCrmOwnerType::ContactName) { if($excludeType !== \CCrmOwnerType::ContactName) { $this->prepareQueryForType($this->getContactQuery(), $offset, $limit, $queries); } } if (!$clientType || $clientType === \CCrmOwnerType::CompanyName) { if($excludeType !== \CCrmOwnerType::CompanyName) { $this->prepareQueryForType($this->getCompanyQuery(), $offset, $limit, $queries); } } return $queries; }