Client::getQueries

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Client
  4. getQueries
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/connectors/client.php
  • Класс: Bitrix\Sender\Integration\Crm\Connectors\Client
  • Вызов: Client::getQueries
public function getQueries($selectList = [])
{
	$queries = array();
	$clientType = $this->getFieldValue('CLIENT_TYPE');

	if (!$clientType || $clientType === \CCrmOwnerType::ContactName)
	{
		$queryCollection = $this->prepareQueryCollection($this->getContactQuery());
		$queries = array_merge($queries, $queryCollection);
	}
	if (!$clientType || $clientType === \CCrmOwnerType::CompanyName)
	{
		$queryCollection = $this->prepareQueryCollection($this->getCompanyQuery());
		$queries = array_merge($queries, $queryCollection);
	}
	return $queries;
}

Добавить комментарий