• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/classes/general/report.php
  • Класс: CReport
  • Вызов: CReport::GetCountInt
static function GetCountInt($owner = '')
{
	global $DB, $USER;

	$strSql = "SELECT COUNT(ID) AS CNT FROM b_report WHERE CREATED_BY='".$DB->ForSql($USER->GetID())."' AND OWNER_ID='".$DB->ForSql($owner)."'";

	$res = $DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); $row = $res->Fetch(); return (int) $row['CNT']; }