| @@ 272-287 (lines=16) @@ | ||
| 269 | * |
|
| 270 | * @return Member[] |
|
| 271 | */ |
|
| 272 | public function forceGetGroupMembers($circleUniqueId, $level = Member::LEVEL_MEMBER) { |
|
| 273 | $qb = $this->getGroupsSelectSql(); |
|
| 274 | ||
| 275 | $this->limitToLevel($qb, $level); |
|
| 276 | $this->limitToCircleId($qb, $circleUniqueId); |
|
| 277 | $this->limitToNCGroupUser($qb); |
|
| 278 | ||
| 279 | $members = []; |
|
| 280 | $cursor = $qb->execute(); |
|
| 281 | while ($data = $cursor->fetch()) { |
|
| 282 | $members[] = $this->parseGroupsSelectSql($data); |
|
| 283 | } |
|
| 284 | $cursor->closeCursor(); |
|
| 285 | ||
| 286 | return $members; |
|
| 287 | } |
|
| 288 | ||
| 289 | ||
| 290 | /** |
|
| @@ 132-145 (lines=14) @@ | ||
| 129 | * |
|
| 130 | * @return FederatedLink[] |
|
| 131 | */ |
|
| 132 | public function getLinksFromCircle($circleUniqueId, $status = 0) { |
|
| 133 | $qb = $this->getLinksSelectSql(); |
|
| 134 | $this->limitToCircleId($qb, $circleUniqueId); |
|
| 135 | $this->limitToStatus($qb, $status); |
|
| 136 | ||
| 137 | $links = []; |
|
| 138 | $cursor = $qb->execute(); |
|
| 139 | while ($data = $cursor->fetch()) { |
|
| 140 | $links[] = $this->parseLinksSelectSql($data); |
|
| 141 | } |
|
| 142 | $cursor->closeCursor(); |
|
| 143 | ||
| 144 | return $links; |
|
| 145 | } |
|
| 146 | ||
| 147 | ||
| 148 | /** |
|