• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/clientinfo.php
  • Класс: Bitrix\Crm\ClientInfo
  • Вызов: ClientInfo::toArray
public function toArray(bool $withOwner = true): array
{
	$result = [
		'COMPANY_ID' => $this->companyId,
		'CONTACT_IDS' => $this->contactIds,
	];

	if ($withOwner && isset($this->ownerTypeId) && isset($this->ownerId))
	{
		$result['OWNER_TYPE_ID'] = $this->ownerTypeId;
		$result['OWNER_ID'] = $this->ownerId;
	}

	return $result;
}