• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/sharepoint_log.php
  • Класс: CAllIntranetSharepointLog
  • Вызов: CAllIntranetSharepointLog::Next
static function Next($IBLOCK_ID = 0, $cnt = 0)
{
	global $DB;

	if (self::$log === null)
	{
		self::$log = array();
		
		$IBLOCK_ID = intval($IBLOCK_ID);
		
		$cnt = intval($cnt);
		if ($cnt <= 0) 
			$cnt = BX_INTRANET_SP_LOG_COUNT_MANUAL;
	
		$strWhere = "WHERE ISPL.ID>'".self::$log_min_id."'";
		$strWhere .= $IBLOCK_ID > 0 ? " AND ISPL.IBLOCK_ID='".$IBLOCK_ID."'" : '';
	
		if (!($query = CIntranetSharepointLog::_LimitQuery($strWhere, $cnt)))
			return false;

		$dbRes = $DB->Query($query, false, "FILE: ".__FILE__."
LINE:".__LINE__); while ($arRes = $dbRes->Fetch()) { array_push(self::$log, $arRes); } } $res = array_shift(self::$log); return $res; }