• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/classes/general/user.php
  • Класс: CAllForumRank
  • Вызов: CAllForumRank::GetByIDEx
static function GetByIDEx($ID, $strLang)
{
	global $DB;

	$ID = intval($ID);
	$strSql =
		"SELECT FR.ID, FRL.LID, FRL.NAME, FR.MIN_NUM_POSTS ".
		"FROM b_forum_rank FR ".
		"	LEFT JOIN b_forum_rank_lang FRL ON (FR.ID = FRL.RANK_ID AND FRL.LID = '".$DB->ForSql($strLang)."') ".
		"WHERE FR.ID = ".$ID."";
	$db_res = $DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); if ($res = $db_res->Fetch()) { return $res; } return False; }