• Модуль: support
  • Путь к файлу: ~/bitrix/modules/support/classes/general/support.php
  • Класс: CAllTicket
  • Вызов: CAllTicket::getMaxId
static function getMaxId()
{
	global $DB;

	$id = null;

	$result = $DB->Query("SELECT MAX(ID) as MAX_ID FROM b_ticket");
	if ($result)
	{
		$row = $result->Fetch();
		$id = $row['MAX_ID'];
	}

	return $id;
}