Commit d4a11ad3 authored by webchick's avatar webchick
Browse files

Issue #2003428 by marlatt, marthaflour | baldwinlouie: Rename Views method...

Issue #2003428 by marlatt, marthaflour | baldwinlouie: Rename Views method op_between() to opBetween().
parent d08b65ff
......@@ -164,7 +164,7 @@ public function acceptExposedInput($input) {
return $rc;
}
function op_between($field) {
protected function opBetween($field) {
$a = intval(strtotime($this->value['min'], 0));
$b = intval(strtotime($this->value['max'], 0));
......
......@@ -27,7 +27,7 @@ public function query() {
$this->{$info[$this->operator]['method']}($field);
}
}
function op_between($field) {
protected function opBetween($field) {
$placeholder_min = $this->placeholder();
$placeholder_max = $this->placeholder();
if ($this->operator == 'between') {
......
......@@ -75,13 +75,13 @@ function operators() {
),
'between' => array(
'title' => t('Is between'),
'method' => 'op_between',
'method' => 'opBetween',
'short' => t('between'),
'values' => 2,
),
'not between' => array(
'title' => t('Is not between'),
'method' => 'op_between',
'method' => 'opBetween',
'short' => t('not between'),
'values' => 2,
),
......@@ -251,7 +251,7 @@ public function query() {
}
}
function op_between($field) {
protected function opBetween($field) {
if ($this->operator == 'between') {
$this->query->add_where($this->options['group'], $field, array($this->value['min'], $this->value['max']), 'BETWEEN');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment