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

	if (count(self::$queue) <= 0)
	{
		$IBLOCK_ID = intval($IBLOCK_ID);

		$cnt = intval($cnt);
		if ($cnt <= 0)
			$cnt = BX_INTRANET_SP_QUEUE_COUNT;

		$strWhere = "WHERE ISPQ.ID>'".self::$queue_min_id."'";
		$strWhere .= $IBLOCK_ID > 0 ? " AND ISPQ.IBLOCK_ID='".$IBLOCK_ID."'" : '';

		if (!($query = CIntranetSharepointQueue::_LimitQuery($strWhere, $cnt)))
			return false;

		$dbRes = $DB->Query($query, false, "FILE: ".__FILE__."
LINE:".__LINE__); while ($arRes = $dbRes->Fetch()) { array_push(self::$queue, $arRes); } } $res = array_shift(self::$queue); if (is_array($res)) { if ($res['SP_METHOD_PARAMS'] <> '') $res['SP_METHOD_PARAMS'] = unserialize($res['SP_METHOD_PARAMS'], ["allowed_classes" => false]); if ($res['CALLBACK'] <> '') $res['CALLBACK'] = unserialize($res['CALLBACK'], ["allowed_classes" => false]); } return $res; }