Commit 3a726261 authored by webchick's avatar webchick
Browse files

Issue #2003558 by marlatt, NonProfit, nathangervais | heddn: Rename Views...

Issue #2003558 by marlatt, NonProfit, nathangervais | heddn: Rename Views method op_ends() to opEndsWith().
parent 70d3d8d7
......@@ -111,7 +111,7 @@ function op_not_starts($expression) {
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => db_like($this->value) . '%'));
}
function op_ends($expression) {
protected function opEndsWith($expression) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value)));
}
......
......@@ -83,7 +83,7 @@ function operators() {
'ends' => array(
'title' => t('Ends with'),
'short' => t('ends'),
'method' => 'op_ends',
'method' => 'opEndsWith',
'values' => 1,
),
'not_ends' => array(
......@@ -309,7 +309,7 @@ function op_not_starts($field) {
$this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'NOT LIKE');
}
function op_ends($field) {
protected function opEndsWith($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