Commit ee9bb516 authored by alexpott's avatar alexpott

Issue #2003554 by jeroen12345, NonProfit: Rename Views method op_contains() to opContains().

parent fb03231e
......@@ -96,7 +96,7 @@ function opEqual($expression) {
$this->query->add_where_expression($this->options['group'], "$expression $operator $placeholder", array($placeholder => $this->value));
}
function op_contains($expression) {
protected function opContains($expression) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%'));
}
......
......@@ -53,7 +53,7 @@ function operators() {
'contains' => array(
'title' => t('Contains'),
'short' => t('contains'),
'method' => 'op_contains',
'method' => 'opContains',
'values' => 1,
),
'word' => array(
......@@ -264,7 +264,7 @@ public function opEqual($field) {
$this->query->add_where($this->options['group'], $field, $this->value, $this->operator());
}
function op_contains($field) {
protected function opContains($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