• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/tracking/pool.php
  • Класс: Bitrix\Crm\Tracking\Pool
  • Вызов: Pool::getItems
public function getItems($typeId)
{
	switch ($typeId)
	{
		case Communication\Type::EMAIL:
			return $this->getEmails();

		case Communication\Type::PHONE:
			return $this->getPhones();

		default:
			throw new ArgumentException("Unknown type `$typeId`.");
	}
}