Commit 8d582794 authored by webchick's avatar webchick
Browse files

Issue #2003536 by nathangervais, marlatt, NonProfit | heddn: Change notice:...

Issue #2003536 by nathangervais, marlatt, NonProfit | heddn: Change notice: Rename Views method op_regex() to opRegex().
parent 30d3671c
......@@ -126,7 +126,7 @@ function op_not($expression) {
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%'));
}
function op_regex($expression) {
protected function opRegex($expression) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression RLIKE $placeholder", array($placeholder => $this->value));
}
......
......@@ -111,7 +111,7 @@ function operators() {
'regular_expression' => array(
'title' => t('Regular expression'),
'short' => t('regex'),
'method' => 'op_regex',
'method' => 'opRegex',
'values' => 1,
),
);
......@@ -275,7 +275,7 @@ function op_empty($field) {
$this->query->add_where($this->options['group'], $field, NULL, $operator);
}
function op_regex($field) {
protected function opRegex($field) {
$this->query->add_where($this->options['group'], $field, $this->value, 'RLIKE');
}
......
......@@ -134,7 +134,7 @@ function operators() {
'regular_expression' => array(
'title' => t('Regular expression'),
'short' => t('regex'),
'method' => 'op_regex',
'method' => 'opRegex',
'values' => 1,
),
);
......@@ -331,7 +331,7 @@ function op_longer($field) {
$this->query->add_where_expression($this->options['group'], "LENGTH($field) > $placeholder", array($placeholder => $this->value));
}
function op_regex($field) {
protected function opRegex($field) {
$this->query->add_where($this->options['group'], $field, $this->value, 'RLIKE');
}
......
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