| @@ 85-97 (lines=13) @@ | ||
| 82 | * |
|
| 83 | * @return Circle[] |
|
| 84 | */ |
|
| 85 | public function forceGetCircles(string $ownerId = '') { |
|
| 86 | $qb = $this->getCirclesSelectSql(); |
|
| 87 | $this->leftJoinOwner($qb, $ownerId); |
|
| 88 | ||
| 89 | $circles = []; |
|
| 90 | $cursor = $qb->execute(); |
|
| 91 | while ($data = $cursor->fetch()) { |
|
| 92 | $circles[] = $this->parseCirclesSelectSql($data); |
|
| 93 | } |
|
| 94 | $cursor->closeCursor(); |
|
| 95 | ||
| 96 | return $circles; |
|
| 97 | } |
|
| 98 | ||
| 99 | ||
| 100 | /** |
|
| @@ 400-412 (lines=13) @@ | ||
| 397 | * |
|
| 398 | * @return array |
|
| 399 | */ |
|
| 400 | public function getFromBook(int $addressBookId) { |
|
| 401 | $qb = $this->getCirclesSelectSql(); |
|
| 402 | $this->limitToAddressBookId($qb, $addressBookId); |
|
| 403 | ||
| 404 | $circles = []; |
|
| 405 | $cursor = $qb->execute(); |
|
| 406 | while ($data = $cursor->fetch()) { |
|
| 407 | $circles[] = $this->parseCirclesSelectSql($data); |
|
| 408 | } |
|
| 409 | $cursor->closeCursor(); |
|
| 410 | ||
| 411 | return $circles; |
|
| 412 | } |
|
| 413 | ||
| 414 | ||
| 415 | /** |
|
| @@ 420-432 (lines=13) @@ | ||
| 417 | * |
|
| 418 | * @return Circle[] |
|
| 419 | */ |
|
| 420 | public function getFromContactBook(int $addressBookId): array { |
|
| 421 | $qb = $this->getCirclesSelectSql(); |
|
| 422 | $this->limitToAddressBookId($qb, $addressBookId); |
|
| 423 | ||
| 424 | $circles = []; |
|
| 425 | $cursor = $qb->execute(); |
|
| 426 | while ($data = $cursor->fetch()) { |
|
| 427 | $circles[] = $this->parseCirclesSelectSql($data); |
|
| 428 | } |
|
| 429 | $cursor->closeCursor(); |
|
| 430 | ||
| 431 | return $circles; |
|
| 432 | } |
|
| 433 | ||
| 434 | ||
| 435 | /** |
|