| @@ 543-556 (lines=14) @@ | ||
| 540 | * |
|
| 541 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
|
| 542 | */ |
|
| 543 | public function having() |
|
| 544 | { |
|
| 545 | $args = func_get_args(); |
|
| 546 | ||
| 547 | if (count($args) === 0) { |
|
| 548 | throw new QueryException('No arguments given'); |
|
| 549 | } |
|
| 550 | ||
| 551 | foreach ($args as $whereCondition) { |
|
| 552 | $this->parts['having'][] = $whereCondition; |
|
| 553 | } |
|
| 554 | ||
| 555 | return $this; |
|
| 556 | } |
|
| 557 | ||
| 558 | /** |
|
| 559 | * Returns the query string for this query object. |
|
| @@ 421-434 (lines=14) @@ | ||
| 418 | * |
|
| 419 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
|
| 420 | */ |
|
| 421 | public function where() |
|
| 422 | { |
|
| 423 | $args = func_get_args(); |
|
| 424 | ||
| 425 | if (count($args) === 0) { |
|
| 426 | throw new QueryException('No arguments given'); |
|
| 427 | } |
|
| 428 | ||
| 429 | foreach ($args as $whereCondition) { |
|
| 430 | $this->parts['where'][] = $whereCondition; |
|
| 431 | } |
|
| 432 | ||
| 433 | return $this; |
|
| 434 | } |
|
| 435 | ||
| 436 | /** |
|
| 437 | * Returns SQL that limits the result set. |
|