| @@ 50-62 (lines=13) @@ | ||
| 47 | /** |
|
| 48 | * {@inheritDoc} |
|
| 49 | */ |
|
| 50 | public function havingTpl(/*# string */ $template, $col, array $params = []) |
|
| 51 | { |
|
| 52 | $template = $this->positionedParam($template, $params); |
|
| 53 | return $this->realWhere( |
|
| 54 | new Template($template, $col), |
|
| 55 | WhereInterface::NO_OPERATOR, |
|
| 56 | WhereInterface::NO_VALUE, |
|
| 57 | true, |
|
| 58 | false, |
|
| 59 | true, |
|
| 60 | 'HAVING' |
|
| 61 | ); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * {@inheritDoc} |
|
| @@ 67-79 (lines=13) @@ | ||
| 64 | /** |
|
| 65 | * {@inheritDoc} |
|
| 66 | */ |
|
| 67 | public function havingRaw(/*# string */ $rawString, array $params = []) |
|
| 68 | { |
|
| 69 | $rawString = $this->positionedParam($rawString, $params); |
|
| 70 | return $this->realWhere( |
|
| 71 | $rawString, |
|
| 72 | WhereInterface::NO_OPERATOR, |
|
| 73 | WhereInterface::NO_VALUE, |
|
| 74 | true, |
|
| 75 | false, |
|
| 76 | true, |
|
| 77 | 'HAVING' |
|
| 78 | ); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Build HAVING |
|
| @@ 79-90 (lines=12) @@ | ||
| 76 | /** |
|
| 77 | * {@inheritDoc} |
|
| 78 | */ |
|
| 79 | public function whereRaw(/*# string */ $rawString, array $params = []) |
|
| 80 | { |
|
| 81 | $rawString = $this->positionedParam($rawString, $params); |
|
| 82 | return $this->realWhere( |
|
| 83 | $rawString, |
|
| 84 | WhereInterface::NO_OPERATOR, |
|
| 85 | WhereInterface::NO_VALUE, |
|
| 86 | 'AND', |
|
| 87 | '', |
|
| 88 | true |
|
| 89 | ); |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * {@inheritDoc} |
|
| @@ 95-106 (lines=12) @@ | ||
| 92 | /** |
|
| 93 | * {@inheritDoc} |
|
| 94 | */ |
|
| 95 | public function orWhereRaw(/*# string */ $rawString, array $params = []) |
|
| 96 | { |
|
| 97 | $rawString = $this->positionedParam($rawString, $params); |
|
| 98 | return $this->realWhere( |
|
| 99 | $rawString, |
|
| 100 | WhereInterface::NO_OPERATOR, |
|
| 101 | WhereInterface::NO_VALUE, |
|
| 102 | 'OR', |
|
| 103 | '', |
|
| 104 | true |
|
| 105 | ); |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * {@inheritDoc} |
|