| @@ 82-95 (lines=14) @@ | ||
| 79 | * |
|
| 80 | * @return Circle[] |
|
| 81 | */ |
|
| 82 | public function forceGetCircles() { |
|
| 83 | ||
| 84 | $qb = $this->getCirclesSelectSql(); |
|
| 85 | $this->leftJoinOwner($qb); |
|
| 86 | ||
| 87 | $circles = []; |
|
| 88 | $cursor = $qb->execute(); |
|
| 89 | while ($data = $cursor->fetch()) { |
|
| 90 | $circles[] = $this->parseCirclesSelectSql($data); |
|
| 91 | } |
|
| 92 | $cursor->closeCursor(); |
|
| 93 | ||
| 94 | return $circles; |
|
| 95 | } |
|
| 96 | ||
| 97 | ||
| 98 | /** |
|
| @@ 367-379 (lines=13) @@ | ||
| 364 | * |
|
| 365 | * @return array |
|
| 366 | */ |
|
| 367 | public function getFromBook(int $addressBookId) { |
|
| 368 | $qb = $this->getCirclesSelectSql(); |
|
| 369 | $this->limitToAddressBookId($qb, $addressBookId); |
|
| 370 | ||
| 371 | $circles = []; |
|
| 372 | $cursor = $qb->execute(); |
|
| 373 | while ($data = $cursor->fetch()) { |
|
| 374 | $circles[] = $this->parseCirclesSelectSql($data); |
|
| 375 | } |
|
| 376 | $cursor->closeCursor(); |
|
| 377 | ||
| 378 | return $circles; |
|
| 379 | } |
|
| 380 | ||
| 381 | ||
| 382 | /** |
|
| @@ 387-399 (lines=13) @@ | ||
| 384 | * |
|
| 385 | * @return Circle[] |
|
| 386 | */ |
|
| 387 | public function getFromContactBook(int $addressBookId): array { |
|
| 388 | $qb = $this->getCirclesSelectSql(); |
|
| 389 | $this->limitToAddressBookId($qb, $addressBookId); |
|
| 390 | ||
| 391 | $circles = []; |
|
| 392 | $cursor = $qb->execute(); |
|
| 393 | while ($data = $cursor->fetch()) { |
|
| 394 | $circles[] = $this->parseCirclesSelectSql($data); |
|
| 395 | } |
|
| 396 | $cursor->closeCursor(); |
|
| 397 | ||
| 398 | return $circles; |
|
| 399 | } |
|
| 400 | ||
| 401 | ||
| 402 | /** |
|