• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/classes/general/points.php
  • Класс: CAllForumUserPoints
  • Вызов: CAllForumUserPoints::GetByID
static function GetByID($FROM_USER_ID, $TO_USER_ID)
{
	global $DB;

	$FROM_USER_ID = intval($FROM_USER_ID);
	if ($FROM_USER_ID<=0)
		return False;

	$TO_USER_ID = intval($TO_USER_ID);
	if ($TO_USER_ID<=0)
		return False;

	$strSql =
		"SELECT FR.FROM_USER_ID, FR.TO_USER_ID, FR.POINTS, FR.DATE_UPDATE
		FROM b_forum_user_points FR
		WHERE FR.FROM_USER_ID = ".$FROM_USER_ID."
			AND FR.TO_USER_ID = ".$TO_USER_ID."";
	$db_res = $DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); if ($res = $db_res->Fetch()) return $res; return False; }