Issue #2003558 by marlatt, NonProfit, nathangervais | heddn: Rename Views method op_ends() to opEndsWith().

8.0.x
webchick 2013-06-04 21:59:14 -05:00
parent 70d3d8d700
commit 3a72626107
2 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ class Combine extends String {
$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)));
}

View File

@ -83,7 +83,7 @@ class String extends FilterPluginBase {
'ends' => array(
'title' => t('Ends with'),
'short' => t('ends'),
'method' => 'op_ends',
'method' => 'opEndsWith',
'values' => 1,
),
'not_ends' => array(
@ -309,7 +309,7 @@ class String extends FilterPluginBase {
$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');
}