lib/Db/FederatedLinksRequest.php 1 location
|
@@ 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 |
|
/** |
lib/Db/SharingFrameRequest.php 1 location
|
@@ 75-87 (lines=13) @@
|
| 72 |
|
* |
| 73 |
|
* @return SharingFrame[] |
| 74 |
|
*/ |
| 75 |
|
public function getSharingFramesFromCircle($circleUniqueId) { |
| 76 |
|
$qb = $this->getSharesSelectSql(); |
| 77 |
|
$this->limitToCircleId($qb, $circleUniqueId); |
| 78 |
|
|
| 79 |
|
$frames = []; |
| 80 |
|
$cursor = $qb->execute(); |
| 81 |
|
while ($data = $cursor->fetch()) { |
| 82 |
|
$frames[] = $this->parseSharesSelectSql($data); |
| 83 |
|
} |
| 84 |
|
$cursor->closeCursor(); |
| 85 |
|
|
| 86 |
|
return $frames; |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
|
| 90 |
|
/** |
lib/Db/MembersRequest.php 1 location
|
@@ 297-312 (lines=16) @@
|
| 294 |
|
* |
| 295 |
|
* @return Member[] |
| 296 |
|
*/ |
| 297 |
|
public function forceGetGroupMembers($circleUniqueId, $level = Member::LEVEL_MEMBER) { |
| 298 |
|
$qb = $this->getGroupsSelectSql(); |
| 299 |
|
|
| 300 |
|
$this->limitToLevel($qb, $level); |
| 301 |
|
$this->limitToCircleId($qb, $circleUniqueId); |
| 302 |
|
$this->limitToNCGroupUser($qb); |
| 303 |
|
|
| 304 |
|
$members = []; |
| 305 |
|
$cursor = $qb->execute(); |
| 306 |
|
while ($data = $cursor->fetch()) { |
| 307 |
|
$members[] = $this->parseGroupsSelectSql($data); |
| 308 |
|
} |
| 309 |
|
$cursor->closeCursor(); |
| 310 |
|
|
| 311 |
|
return $members; |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
|
| 315 |
|
/** |