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

	$ID = (int)$ID;
	if ($ID <= 0)
	{
		$APPLICATION->ThrowException(Loc::getMessage("SONET_GL_WRONG_PARAMETER_ID"), "ERROR_NO_ID");
		return false;
	}

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

	return False;
}