14 private array $current = [];
18 private bool $valid =
false;
20 private Result $ormQueryResult;
24 $this->queryInit($this->sonetLogId);
31 $this->queryInit($this->sonetLogId);
40 public function key(): int
45 public function next(): void
48 $row = $this->ormQueryResult->fetch();
52 unset($this->ormQueryResult);
67 return $this->query->queryCountTotal();
70 private function queryInit(
int $sonetLogId)
75 $allAuthorised =
'AU';
76 $sonetLogRights = \Bitrix\Socialnetwork\Item\LogRight::get($sonetLogId);
78 if (in_array($all, $sonetLogRights) || in_array($allAuthorised, $sonetLogRights))
81 $this->query = UserTable::query()
85 ->where(
'ACTIVE',
'=',
'Y');
87 $this->ormQueryResult = $this->query->exec();
92 $this->query = UserAccessTable::query()
97 ->whereIn(
'ACCESS_CODE', $sonetLogRights);
99 $this->ormQueryResult = $this->query->exec();