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

	$ID = intval($ID);
	if ($ID <= 0)
	{
		$GLOBALS["APPLICATION"]->ThrowException(GetMessage("SONET_LE_WRONG_PARAMETER_ID"), "ERROR_NO_ID");
		return false;
	}

	$dbResult = CSocNetLogEvents::GetList(Array(), Array("ID" => $ID));
	if ($arResult = $dbResult->GetNext())
	{
		return $arResult;
	}

	return False;
}