Issue #2003558 by marlatt, NonProfit, nathangervais | heddn: Rename Views method op_ends() to opEndsWith().
parent
70d3d8d700
commit
3a72626107
|
@ -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)));
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue