summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-09-28 17:22:04 (GMT)
committerAlex Pott2013-09-28 17:22:04 (GMT)
commit8dd8210d9e5604be47f9f60acc15602b68d4c596 (patch)
tree67b2f2631ebe39191c87e0585210e0b4cc82becb
parent3b91bd163ad3efc1b3234b6cda17a9ee32d669c1 (diff)
Issue #2062153 by chertzog, rhm50: In String Class Rename Views properties to core standards.
-rw-r--r--core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php2
-rw-r--r--core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php2
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php2
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php2
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php10
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php2
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php2
7 files changed, 11 insertions, 11 deletions
diff --git a/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php b/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
index 89b21e4..0ee63e4 100644
--- a/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
+++ b/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
@@ -20,7 +20,7 @@ use Drupal\Component\Annotation\PluginID;
*/
class Search extends FilterPluginBase {
- var $always_multiple = TRUE;
+ protected $alwaysMultiple = TRUE;
/**
* Stores an extended query extender from the search module.
diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php
index 736bb52..ed20d4e 100644
--- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php
+++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php
@@ -19,7 +19,7 @@ use Drupal\Component\Annotation\PluginID;
*/
class Name extends InOperator {
- var $always_multiple = TRUE;
+ protected $alwaysMultiple = TRUE;
protected function valueForm(&$form, &$form_state) {
$values = array();
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
index 14f83ba..045edd5 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
@@ -32,7 +32,7 @@ use Drupal\views\ViewExecutable;
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
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php
index 53785ba..ec68ab2 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php
@@ -19,7 +19,7 @@ use Drupal\Component\Annotation\PluginID;
class Equality extends FilterPluginBase {
// exposed filter options
- var $always_multiple = TRUE;
+ protected $alwaysMultiple = TRUE;
/**
* Provide simple equality operator
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
index 943814a..8c69290 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
@@ -26,7 +26,7 @@ use Drupal\views\ViewExecutable;
* 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 @@ abstract class FilterPluginBase extends HandlerBase {
);
}
- if (empty($this->always_multiple)) {
+ if (empty($this->alwaysMultiple)) {
$form['expose']['multiple'] = array(
'#type' => 'checkbox',
'#title' => t('Allow multiple selections'),
@@ -1331,13 +1331,13 @@ abstract class FilterPluginBase extends HandlerBase {
}
}
- 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);
}
}
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php
index a9e4dd3..a257058 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php
@@ -19,7 +19,7 @@ use Drupal\Component\Annotation\PluginID;
*/
class Numeric extends FilterPluginBase {
- var $always_multiple = TRUE;
+ protected $alwaysMultiple = TRUE;
protected function defineOptions() {
$options = parent::defineOptions();
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
index 1af32f0..90acd1b 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
@@ -21,7 +21,7 @@ use Drupal\Component\Annotation\PluginID;
class String extends FilterPluginBase {
// exposed filter options
- var $always_multiple = TRUE;
+ protected $alwaysMultiple = TRUE;
protected function defineOptions() {
$options = parent::defineOptions();