3namespace Bitrix\Socialnetwork\Internals\LiveFeed\Counter\State;
5use Bitrix\Main\ORM\Query\Result;
6use Bitrix\Main\ORM\Query\Query;
7use Bitrix\Socialnetwork\Internals\LiveFeed\Counter;
8use Bitrix\Socialnetwork\Internals\LiveFeed\Counter\CounterState;
9use Bitrix\Socialnetwork\Internals\LiveFeed\Counter\CounterTable;
15 private array $current = [];
19 private bool $valid =
false;
21 private Result $ormQueryResult;
25 parent::__construct(
$userId, $loader);
34 $this->queryInit($this->userId);
40 return $this->current;
43 public function key(): int
48 public function next(): void
51 $row = $this->ormQueryResult->fetch();
55 unset($this->ormQueryResult);
70 return $this->query->queryCountTotal();
83 private function queryInit(
int $userId)
94 $this->ormQueryResult = $this->query->exec();
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
__construct(int $userId, Counter\Loader $loader)
updateState(array $rawCounters, array $types=[], array $logIds=[])
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key