• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/Activity/Call.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\Activity\Call
  • Вызов: Call::getIconCode
public function getIconCode(): ?string
{
	switch ($this->fetchDirection())
	{
		case CCrmActivityDirection::Incoming:
			if ($this->isMissedCall())
			{
				return Icon::CALL_INCOMING_MISSED;
			}

			return $this->isScheduled() ? Icon::CALL_INCOMING : Icon::CALL_COMPLETED;
		case CCrmActivityDirection::Outgoing:
			return Icon::CALL_OUTCOMING;
	}

	return Icon::CALL;
}