|
@@ 514-524 (lines=11) @@
|
| 511 |
|
* @param $operator |
| 512 |
|
* @return boolean |
| 513 |
|
*/ |
| 514 |
|
private function operatorIsNAry($operator) |
| 515 |
|
{ |
| 516 |
|
$valueArray = $this->getQueryParamValue(); |
| 517 |
|
return array_key_exists( |
| 518 |
|
$operator, |
| 519 |
|
$this->getContext()->getModel()->valid_in_style_operators() |
| 520 |
|
) |
| 521 |
|
&& isset($valueArray[1]) |
| 522 |
|
&& is_array($valueArray[1]) |
| 523 |
|
&& !isset($valueArray[2]); |
| 524 |
|
} |
| 525 |
|
|
| 526 |
|
/** |
| 527 |
|
* Returns true if the operator accepts 3 arguments (eg "BETWEEN"). |
|
@@ 551-557 (lines=7) @@
|
| 548 |
|
* @param $operator |
| 549 |
|
* @return boolean |
| 550 |
|
*/ |
| 551 |
|
private function operatorIsLike($operator) |
| 552 |
|
{ |
| 553 |
|
$query_param_value = $this->getQueryParamValue(); |
| 554 |
|
return array_key_exists($operator, $this->getContext()->getModel()->valid_like_style_operators()) |
| 555 |
|
&& isset($query_param_value[1]) |
| 556 |
|
&& !isset($query_param_value[2]); |
| 557 |
|
} |
| 558 |
|
|
| 559 |
|
/** |
| 560 |
|
* Returns true if the operator only takes one argument (eg it's like `IS NULL`). |