| @@ 614-627 (lines=14) @@ | ||
| 611 | $this->arguments = array(); |
|
| 612 | ||
| 613 | // Join table arguments |
|
| 614 | if(is_array($this->tables) && count($this->tables) > 0) |
|
| 615 | { |
|
| 616 | foreach($this->tables as $table) |
|
| 617 | { |
|
| 618 | if($table->isJoinTable() || is_a($table, 'Subquery')) |
|
| 619 | { |
|
| 620 | $args = $table->getArguments(); |
|
| 621 | if($args) |
|
| 622 | { |
|
| 623 | $this->arguments = array_merge($this->arguments, $args); |
|
| 624 | } |
|
| 625 | } |
|
| 626 | } |
|
| 627 | } |
|
| 628 | ||
| 629 | // Column arguments |
|
| 630 | // The if is for delete statements, all others must have columns |
|
| @@ 631-644 (lines=14) @@ | ||
| 628 | ||
| 629 | // Column arguments |
|
| 630 | // The if is for delete statements, all others must have columns |
|
| 631 | if(is_array($this->columns) && count($this->columns) > 0) |
|
| 632 | { |
|
| 633 | foreach($this->columns as $column) |
|
| 634 | { |
|
| 635 | if($column->show()) |
|
| 636 | { |
|
| 637 | $args = $column->getArguments(); |
|
| 638 | if($args) |
|
| 639 | { |
|
| 640 | $this->arguments = array_merge($this->arguments, $args); |
|
| 641 | } |
|
| 642 | } |
|
| 643 | } |
|
| 644 | } |
|
| 645 | ||
| 646 | // Condition arguments |
|
| 647 | if(is_array($this->conditions) && count($this->conditions) > 0) |
|
| @@ 647-657 (lines=11) @@ | ||
| 644 | } |
|
| 645 | ||
| 646 | // Condition arguments |
|
| 647 | if(is_array($this->conditions) && count($this->conditions) > 0) |
|
| 648 | { |
|
| 649 | foreach($this->conditions as $conditionGroup) |
|
| 650 | { |
|
| 651 | $args = $conditionGroup->getArguments(); |
|
| 652 | if(count($args) > 0) |
|
| 653 | { |
|
| 654 | $this->arguments = array_merge($this->arguments, $args); |
|
| 655 | } |
|
| 656 | } |
|
| 657 | } |
|
| 658 | ||
| 659 | // Navigation arguments |
|
| 660 | if(is_array($this->orderby) && count($this->orderby) > 0) |
|
| @@ 660-670 (lines=11) @@ | ||
| 657 | } |
|
| 658 | ||
| 659 | // Navigation arguments |
|
| 660 | if(is_array($this->orderby) && count($this->orderby) > 0) |
|
| 661 | { |
|
| 662 | foreach($this->orderby as $order) |
|
| 663 | { |
|
| 664 | $args = $order->getArguments(); |
|
| 665 | if(count($args) > 0) |
|
| 666 | { |
|
| 667 | $this->arguments = array_merge($this->arguments, $args); |
|
| 668 | } |
|
| 669 | } |
|
| 670 | } |
|
| 671 | } |
|
| 672 | return $this->arguments; |
|
| 673 | } |
|