| @@ 200-210 (lines=11) @@ | ||
| 197 | * |
|
| 198 | * @return string |
|
| 199 | */ |
|
| 200 | private function generateLimitClosed(IQueryBuilder $qb, $type) { |
|
| 201 | if (!(DeprecatedCircle::CIRCLES_CLOSED & (int)$type)) { |
|
| 202 | return null; |
|
| 203 | } |
|
| 204 | ||
| 205 | return $qb->expr() |
|
| 206 | ->eq( |
|
| 207 | 'c.type', |
|
| 208 | $qb->createNamedParameter(DeprecatedCircle::CIRCLES_CLOSED) |
|
| 209 | ); |
|
| 210 | } |
|
| 211 | ||
| 212 | ||
| 213 | /** |
|
| @@ 219-229 (lines=11) @@ | ||
| 216 | * |
|
| 217 | * @return string |
|
| 218 | */ |
|
| 219 | private function generateLimitPublic(IQueryBuilder $qb, $type) { |
|
| 220 | if (!(DeprecatedCircle::CIRCLES_PUBLIC & (int)$type)) { |
|
| 221 | return null; |
|
| 222 | } |
|
| 223 | ||
| 224 | return $qb->expr() |
|
| 225 | ->eq( |
|
| 226 | 'c.type', |
|
| 227 | $qb->createNamedParameter(DeprecatedCircle::CIRCLES_PUBLIC) |
|
| 228 | ); |
|
| 229 | } |
|
| 230 | ||
| 231 | ||
| 232 | /** |
|