Commit 8dd8210d authored by alexpott's avatar alexpott

Issue #2062153 by chertzog, rhm50: In String Class Rename Views properties to core standards.

parent 3b91bd16
......@@ -20,7 +20,7 @@
*/
class Search extends FilterPluginBase {
var $always_multiple = TRUE;
protected $alwaysMultiple = TRUE;
/**
* Stores an extended query extender from the search module.
......
......@@ -19,7 +19,7 @@
*/
class Name extends InOperator {
var $always_multiple = TRUE;
protected $alwaysMultiple = TRUE;
protected function valueForm(&$form, &$form_state) {
$values = array();
......
......@@ -32,7 +32,7 @@
class BooleanOperator extends FilterPluginBase {
// exposed filter options
var $always_multiple = TRUE;
protected $alwaysMultiple = TRUE;
// Don't display empty space where the operator would be.
var $no_operator = TRUE;
// Whether to accept NULL as a false value or not
......
......@@ -19,7 +19,7 @@
class Equality extends FilterPluginBase {
// exposed filter options
var $always_multiple = TRUE;
protected $alwaysMultiple = TRUE;
/**
* Provide simple equality operator
......
......@@ -26,7 +26,7 @@
* You can set some specific behavior by setting up the following flags on
* your custom class.
*
* - always_multiple:
* - alwaysMultiple:
* Disable the possibility to force a single value.
* - no_operator:
* Disable the possibility to use operators.
......@@ -61,7 +61,7 @@ abstract class FilterPluginBase extends HandlerBase {
* @var bool
* Disable the possibility to force a single value.
*/
var $always_multiple = FALSE;
protected $alwaysMultiple = FALSE;
/**
* @var bool
......@@ -560,7 +560,7 @@ public function buildExposeForm(&$form, &$form_state) {
);
}
if (empty($this->always_multiple)) {
if (empty($this->alwaysMultiple)) {
$form['expose']['multiple'] = array(
'#type' => 'checkbox',
'#title' => t('Allow multiple selections'),
......@@ -1331,13 +1331,13 @@ public function acceptExposedInput($input) {
}
}
if (!empty($this->always_multiple) && $value === '') {
if (!empty($this->alwaysMultiple) && $value === '') {
return FALSE;
}
}
if (isset($value)) {
$this->value = $value;
if (empty($this->always_multiple) && empty($this->options['expose']['multiple'])) {
if (empty($this->alwaysMultiple) && empty($this->options['expose']['multiple'])) {
$this->value = array($value);
}
}
......
......@@ -19,7 +19,7 @@
*/
class Numeric extends FilterPluginBase {
var $always_multiple = TRUE;
protected $alwaysMultiple = TRUE;
protected function defineOptions() {
$options = parent::defineOptions();
......
......@@ -21,7 +21,7 @@
class String extends FilterPluginBase {
// exposed filter options
var $always_multiple = TRUE;
protected $alwaysMultiple = TRUE;
protected function defineOptions() {
$options = parent::defineOptions();
......
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