• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/ui/entityselector/chatprovider.php
  • Класс: BitrixImOpenlinesIntegrationsUIEntitySelectorChatProvider
  • Вызов: ChatProvider::getBlankItem
private function getBlankItem(string $chatId, ?DateTime $dateUpdate = null): Item
{
	$sort = 0;
	$customData['dateUpdate'] = $dateUpdate;
	if (isset($dateUpdate))
	{
		if ($this->sortEnable)
		{
			$sort = $dateUpdate->getTimestamp();
		}
	}

	return new Item([
		'id' => $chatId,
		'entityId' => self::ENTITY_ID,
		'sort' => $sort,
		'customData' => $customData,
	]);
}