Commit c5d336e3 authored by alexpott's avatar alexpott
Browse files

Issue #2003538 by jeroen12345, toddtomlinson, nathangervais: Rename Views...

Issue #2003538 by jeroen12345, toddtomlinson, nathangervais: Rename Views method op_not_starts() to opNotStartsWith().
parent c7ebc944
...@@ -106,7 +106,7 @@ protected function opStartsWith($expression) { ...@@ -106,7 +106,7 @@ protected function opStartsWith($expression) {
$this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => db_like($this->value) . '%')); $this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => db_like($this->value) . '%'));
} }
function op_not_starts($expression) { protected function opNotStartsWith($expression) {
$placeholder = $this->placeholder(); $placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => db_like($this->value) . '%')); $this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => db_like($this->value) . '%'));
} }
......
...@@ -77,7 +77,7 @@ function operators() { ...@@ -77,7 +77,7 @@ function operators() {
'not_starts' => array( 'not_starts' => array(
'title' => t('Does not start with'), 'title' => t('Does not start with'),
'short' => t('not_begins'), 'short' => t('not_begins'),
'method' => 'op_not_starts', 'method' => 'opNotStartsWith',
'values' => 1, 'values' => 1,
), ),
'ends' => array( 'ends' => array(
...@@ -305,7 +305,7 @@ protected function opStartsWith($field) { ...@@ -305,7 +305,7 @@ protected function opStartsWith($field) {
$this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'LIKE'); $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'LIKE');
} }
function op_not_starts($field) { protected function opNotStartsWith($field) {
$this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'NOT LIKE'); $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'NOT LIKE');
} }
......
Supports Markdown
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