lib/Db/CirclesRequest.php 1 location
|
@@ 68-81 (lines=14) @@
|
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
|
| 68 |
|
public function getAudience($circleId) { |
| 69 |
|
$qb = $this->getMembersSelectSql(Member::LEVEL_MEMBER); |
| 70 |
|
$this->limitToCircle($qb, $circleId); |
| 71 |
|
|
| 72 |
|
$cursor = $qb->execute(); |
| 73 |
|
|
| 74 |
|
$users = []; |
| 75 |
|
while ($data = $cursor->fetch()) { |
| 76 |
|
$users[] = $this->parseMembersSelectSql($data); |
| 77 |
|
} |
| 78 |
|
$cursor->closeCursor(); |
| 79 |
|
|
| 80 |
|
return $users; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
|
| 84 |
|
} |
lib/ShareByCircleProvider.php 1 location
|
@@ 287-299 (lines=13) @@
|
| 284 |
|
* |
| 285 |
|
* @return Share[] |
| 286 |
|
*/ |
| 287 |
|
public function getSharesInFolder($userId, Folder $node, $reshares) { |
| 288 |
|
$qb = $this->getBaseSelectSql(); |
| 289 |
|
$this->limitToShareOwner($qb, $userId, true); |
| 290 |
|
$cursor = $qb->execute(); |
| 291 |
|
|
| 292 |
|
$shares = []; |
| 293 |
|
while ($data = $cursor->fetch()) { |
| 294 |
|
$shares[$data['file_source']][] = $this->createShareObject($data); |
| 295 |
|
} |
| 296 |
|
$cursor->closeCursor(); |
| 297 |
|
|
| 298 |
|
return $shares; |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
|
| 302 |
|
/** |