Commit 995e4496 authored by alexpott's avatar alexpott

Issue #2003510 by jeroen12345, joeystern, nathangervais: Rename Views method...

Issue #2003510 by jeroen12345, joeystern, nathangervais: Rename Views method op_starts() to opStartsWith().
parent 7d311032
......@@ -101,7 +101,7 @@ function op_contains($expression) {
$this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%'));
}
function op_starts($expression) {
protected function opStartsWith($expression) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => db_like($this->value) . '%'));
}
......
......@@ -71,7 +71,7 @@ function operators() {
'starts' => array(
'title' => t('Starts with'),
'short' => t('begins'),
'method' => 'op_starts',
'method' => 'opStartsWith',
'values' => 1,
),
'not_starts' => array(
......@@ -301,7 +301,7 @@ function op_word($field) {
$this->query->add_where($this->options['group'], $where);
}
function op_starts($field) {
protected function opStartsWith($field) {
$this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'LIKE');
}
......
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