Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
167810ff
Commit
167810ff
authored
Jun 08, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2002340
by elvis2, jibran: Rename Views method add_where() to addWhere().
parent
18e03273
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
46 additions
and
46 deletions
+46
-46
core/modules/comment/lib/Drupal/comment/Plugin/views/argument/UserUid.php
...ment/lib/Drupal/comment/Plugin/views/argument/UserUid.php
+1
-1
core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php
...omment/lib/Drupal/comment/Plugin/views/filter/UserUid.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php
...entity_reference/Plugin/views/display/EntityReference.php
+2
-2
core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php
...dules/node/lib/Drupal/node/Plugin/views/filter/Access.php
+2
-2
core/modules/search/lib/Drupal/search/Plugin/views/argument/Search.php
...search/lib/Drupal/search/Plugin/views/argument/Search.php
+2
-2
core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
...s/search/lib/Drupal/search/Plugin/views/filter/Search.php
+2
-2
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php
...b/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
...al/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
+1
-1
core/modules/tracker/lib/Drupal/tracker/Plugin/views/argument/UserUid.php
...cker/lib/Drupal/tracker/Plugin/views/argument/UserUid.php
+1
-1
core/modules/tracker/lib/Drupal/tracker/Plugin/views/filter/UserUid.php
...racker/lib/Drupal/tracker/Plugin/views/filter/UserUid.php
+1
-1
core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php
...ules/user/lib/Drupal/user/Plugin/views/filter/Current.php
+1
-1
core/modules/views/lib/Drupal/views/ManyToOneHelper.php
core/modules/views/lib/Drupal/views/ManyToOneHelper.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
...Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/argument/Formula.php
.../views/lib/Drupal/views/Plugin/views/argument/Formula.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/argument/ManyToOne.php
...iews/lib/Drupal/views/Plugin/views/argument/ManyToOne.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php
...s/views/lib/Drupal/views/Plugin/views/argument/String.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
.../lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
+4
-4
core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php
...rupal/views/Plugin/views/filter/BooleanOperatorString.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
...lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php
...views/lib/Drupal/views/Plugin/views/filter/InOperator.php
+2
-2
core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php
...es/views/lib/Drupal/views/Plugin/views/filter/Numeric.php
+5
-5
core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
...les/views/lib/Drupal/views/Plugin/views/filter/String.php
+10
-10
core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php
...modules/views/lib/Drupal/views/Plugin/views/query/Sql.php
+2
-2
core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/query/QueryTest.php
...b/Drupal/views_test_data/Plugin/views/query/QueryTest.php
+1
-1
No files found.
core/modules/comment/lib/Drupal/comment/Plugin/views/argument/UserUid.php
View file @
167810ff
...
...
@@ -63,7 +63,7 @@ public function query($group_by = FALSE) {
->
condition
(
"
$this->tableAlias
.uid"
,
$this
->
argument
,
'='
)
->
exists
(
$subselect
);
$this
->
query
->
add
_w
here
(
0
,
$condition
);
$this
->
query
->
add
W
here
(
0
,
$condition
);
}
/**
...
...
core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php
View file @
167810ff
...
...
@@ -32,7 +32,7 @@ public function query() {
->
condition
(
"
$this->tableAlias
.uid"
,
$this
->
value
,
$this
->
operator
)
->
exists
(
$subselect
);
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$condition
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$condition
);
}
}
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php
View file @
167810ff
...
...
@@ -147,12 +147,12 @@ public function query() {
}
}
$this
->
view
->
query
->
add
_w
here
(
0
,
$conditions
);
$this
->
view
->
query
->
add
W
here
(
0
,
$conditions
);
}
// Add an IN condition for validation.
if
(
!
empty
(
$options
[
'ids'
]))
{
$this
->
view
->
query
->
add
_w
here
(
0
,
$id_field
,
$options
[
'ids'
]);
$this
->
view
->
query
->
add
W
here
(
0
,
$id_field
,
$options
[
'ids'
]);
}
$this
->
view
->
setItemsPerPage
(
$options
[
'limit'
]);
...
...
core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php
View file @
167810ff
...
...
@@ -41,8 +41,8 @@ public function query() {
}
}
$this
->
query
->
add
_w
here
(
'AND'
,
$grants
);
$this
->
query
->
add
_w
here
(
'AND'
,
$table
.
'.grant_view'
,
1
,
'>='
);
$this
->
query
->
add
W
here
(
'AND'
,
$grants
);
$this
->
query
->
add
W
here
(
'AND'
,
$table
.
'.grant_view'
,
1
,
'>='
);
}
}
...
...
core/modules/search/lib/Drupal/search/Plugin/views/argument/Search.php
View file @
167810ff
...
...
@@ -50,7 +50,7 @@ public function query($group_by = FALSE) {
}
if
(
$required
)
{
if
(
$this
->
operator
==
'required'
)
{
$this
->
query
->
add
_w
here
(
0
,
'FALSE'
);
$this
->
query
->
add
W
here
(
0
,
'FALSE'
);
}
}
else
{
...
...
@@ -102,7 +102,7 @@ public function query($group_by = FALSE) {
$search_condition
->
condition
(
$or
);
}
$this
->
query
->
add
_w
here
(
0
,
$search_condition
);
$this
->
query
->
add
W
here
(
0
,
$search_condition
);
$this
->
query
->
add_groupby
(
"
$search_index
.sid"
);
$matches
=
$this
->
search_query
->
matches
();
$placeholder
=
$this
->
placeholder
();
...
...
core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
View file @
167810ff
...
...
@@ -130,7 +130,7 @@ public function query() {
}
if
(
$required
)
{
if
(
$this
->
operator
==
'required'
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
'FALSE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
'FALSE'
);
}
}
else
{
...
...
@@ -182,7 +182,7 @@ public function query() {
$search_condition
->
condition
(
$or
);
}
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$search_condition
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$search_condition
);
$this
->
query
->
add_groupby
(
"
$search_index
.sid"
);
$matches
=
$this
->
search_query
->
matches
();
$placeholder
=
$this
->
placeholder
();
...
...
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php
View file @
167810ff
...
...
@@ -143,7 +143,7 @@ public function query($group_by = FALSE) {
}
$subquery
->
condition
(
$where
);
$this
->
query
->
add
_w
here
(
0
,
"
$this->tableAlias
.
$this->realField
"
,
$subquery
,
'IN'
);
$this
->
query
->
add
W
here
(
0
,
"
$this->tableAlias
.
$this->realField
"
,
$subquery
,
'IN'
);
}
function
title
()
{
...
...
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
View file @
167810ff
...
...
@@ -102,7 +102,7 @@ public function query() {
}
$subquery
->
condition
(
$where
);
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
$subquery
,
'IN'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
$subquery
,
'IN'
);
}
}
core/modules/tracker/lib/Drupal/tracker/Plugin/views/argument/UserUid.php
View file @
167810ff
...
...
@@ -27,7 +27,7 @@ public function query($group_by = FALSE) {
// table, we need to make sure {tracker_user} is JOINed and use its alias
// for the WHERE clause.
$tracker_user_alias
=
$this
->
query
->
ensure_table
(
'tracker_user'
);
$this
->
query
->
add
_w
here
(
0
,
"
$tracker_user_alias
.uid"
,
$this
->
argument
);
$this
->
query
->
add
W
here
(
0
,
"
$tracker_user_alias
.uid"
,
$this
->
argument
);
}
}
core/modules/tracker/lib/Drupal/tracker/Plugin/views/filter/UserUid.php
View file @
167810ff
...
...
@@ -27,7 +27,7 @@ public function query() {
// table, we need to make sure {tracker_user} is JOINed and use its alias
// for the WHERE clause.
$tracker_user_alias
=
$this
->
query
->
ensure_table
(
'tracker_user'
);
$this
->
query
->
add
_w
here
(
0
,
"
$tracker_user_alias
.uid"
,
$this
->
value
);
$this
->
query
->
add
W
here
(
0
,
"
$tracker_user_alias
.uid"
,
$this
->
value
);
}
}
core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php
View file @
167810ff
...
...
@@ -45,7 +45,7 @@ public function query() {
else
{
$or
->
condition
(
$field
,
'***CURRENT_USER***'
,
'='
);
}
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$or
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$or
);
}
}
core/modules/views/lib/Drupal/views/ManyToOneHelper.php
View file @
167810ff
...
...
@@ -325,7 +325,7 @@ function add_filter() {
}
// implode on either AND or OR.
$this
->
handler
->
query
->
add
_w
here
(
$options
[
'group'
],
$clause
);
$this
->
handler
->
query
->
add
W
here
(
$options
[
'group'
],
$clause
);
}
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
View file @
167810ff
...
...
@@ -910,7 +910,7 @@ public function summaryName($data) {
*/
public
function
query
(
$group_by
=
FALSE
)
{
$this
->
ensureMyTable
();
$this
->
query
->
add
_w
here
(
0
,
"
$this->tableAlias
.
$this->realField
"
,
$this
->
argument
);
$this
->
query
->
add
W
here
(
0
,
"
$this->tableAlias
.
$this->realField
"
,
$this
->
argument
);
}
/**
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/Formula.php
View file @
167810ff
...
...
@@ -68,7 +68,7 @@ public function query($group_by = FALSE) {
$placeholders
=
array
(
$placeholder
=>
$this
->
argument
,
);
$this
->
query
->
add
_w
here
(
0
,
$formula
,
$placeholders
,
'formula'
);
$this
->
query
->
add
W
here
(
0
,
$formula
,
$placeholders
,
'formula'
);
}
}
core/modules/views/lib/Drupal/views/Plugin/views/argument/ManyToOne.php
View file @
167810ff
...
...
@@ -115,7 +115,7 @@ public function query($group_by = FALSE) {
}
if
(
$empty
)
{
parent
::
ensureMyTable
();
$this
->
query
->
add
_w
here
(
0
,
"
$this->tableAlias
.
$this->realField
"
,
NULL
,
'IS NULL'
);
$this
->
query
->
add
W
here
(
0
,
"
$this->tableAlias
.
$this->realField
"
,
NULL
,
'IS NULL'
);
return
;
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php
View file @
167810ff
...
...
@@ -237,7 +237,7 @@ public function query($group_by = FALSE) {
$this
->
query
->
add_where_expression
(
0
,
$field
,
$placeholders
);
}
else
{
$this
->
query
->
add
_w
here
(
0
,
$field
,
$argument
,
$operator
);
$this
->
query
->
add
W
here
(
0
,
$field
,
$argument
,
$operator
);
}
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
View file @
167810ff
...
...
@@ -174,18 +174,18 @@ public function query() {
$or
=
db_or
()
->
condition
(
$field
,
0
,
'='
)
->
condition
(
$field
,
NULL
,
'IS NULL'
);
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$or
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$or
);
}
else
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
0
,
'='
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
0
,
'='
);
}
}
else
{
if
(
!
empty
(
$this
->
definition
[
'use_equal'
]))
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
1
,
'='
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
1
,
'='
);
}
else
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
0
,
'<>'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
0
,
'<>'
);
}
}
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php
View file @
167810ff
...
...
@@ -37,7 +37,7 @@ public function query() {
else
{
$where
.
=
"<> ''"
;
}
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$where
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$where
);
}
}
core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
View file @
167810ff
...
...
@@ -1416,7 +1416,7 @@ public function storeExposedInput($input, $status) {
*/
public
function
query
()
{
$this
->
ensureMyTable
();
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
$this
->
value
,
$this
->
operator
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
$this
->
value
,
$this
->
operator
);
}
/**
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php
View file @
167810ff
...
...
@@ -384,7 +384,7 @@ protected function opSimple() {
// We use array_values() because the checkboxes keep keys and that can cause
// array addition problems.
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
array_values
(
$this
->
value
),
$this
->
operator
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
array_values
(
$this
->
value
),
$this
->
operator
);
}
function
op_empty
()
{
...
...
@@ -396,7 +396,7 @@ function op_empty() {
$operator
=
"IS NOT NULL"
;
}
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
NULL
,
$operator
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
"
$this->tableAlias
.
$this->realField
"
,
NULL
,
$operator
);
}
public
function
validate
()
{
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php
View file @
167810ff
...
...
@@ -253,15 +253,15 @@ public function query() {
protected
function
opBetween
(
$field
)
{
if
(
$this
->
operator
==
'between'
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
array
(
$this
->
value
[
'min'
],
$this
->
value
[
'max'
]),
'BETWEEN'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
array
(
$this
->
value
[
'min'
],
$this
->
value
[
'max'
]),
'BETWEEN'
);
}
else
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
db_or
()
->
condition
(
$field
,
$this
->
value
[
'min'
],
'<='
)
->
condition
(
$field
,
$this
->
value
[
'max'
],
'>='
));
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
db_or
()
->
condition
(
$field
,
$this
->
value
[
'min'
],
'<='
)
->
condition
(
$field
,
$this
->
value
[
'max'
],
'>='
));
}
}
protected
function
opSimple
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
[
'value'
],
$this
->
operator
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
[
'value'
],
$this
->
operator
);
}
function
op_empty
(
$field
)
{
...
...
@@ -272,11 +272,11 @@ function op_empty($field) {
$operator
=
"IS NOT NULL"
;
}
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
NULL
,
$operator
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
NULL
,
$operator
);
}
protected
function
opRegex
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
'RLIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
'RLIKE'
);
}
public
function
adminSummary
()
{
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
View file @
167810ff
...
...
@@ -261,11 +261,11 @@ public function query() {
}
public
function
opEqual
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
$this
->
operator
());
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
$this
->
operator
());
}
protected
function
opContains
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
)
.
'%'
,
'LIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
)
.
'%'
,
'LIKE'
);
}
protected
function
opContainsWord
(
$field
)
{
...
...
@@ -298,27 +298,27 @@ protected function opContainsWord($field) {
// previously this was a call_user_func_array but that's unnecessary
// as views will unpack an array that is a single arg.
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$where
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$where
);
}
protected
function
opStartsWith
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
db_like
(
$this
->
value
)
.
'%'
,
'LIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
db_like
(
$this
->
value
)
.
'%'
,
'LIKE'
);
}
protected
function
opNotStartsWith
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
db_like
(
$this
->
value
)
.
'%'
,
'NOT LIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
db_like
(
$this
->
value
)
.
'%'
,
'NOT LIKE'
);
}
protected
function
opEndsWith
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'LIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'LIKE'
);
}
protected
function
opNotEnds
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'NOT LIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'NOT LIKE'
);
}
function
op_not
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
)
.
'%'
,
'NOT LIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
)
.
'%'
,
'NOT LIKE'
);
}
protected
function
opShorterThan
(
$field
)
{
...
...
@@ -332,7 +332,7 @@ protected function opLongerThan($field) {
}
protected
function
opRegex
(
$field
)
{
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
'RLIKE'
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
'RLIKE'
);
}
function
op_empty
(
$field
)
{
...
...
@@ -343,7 +343,7 @@ function op_empty($field) {
$operator
=
"IS NOT NULL"
;
}
$this
->
query
->
add
_w
here
(
$this
->
options
[
'group'
],
$field
,
NULL
,
$operator
);
$this
->
query
->
add
W
here
(
$this
->
options
[
'group'
],
$field
,
NULL
,
$operator
);
}
}
core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php
View file @
167810ff
...
...
@@ -823,7 +823,7 @@ public function clearFields() {
* The $field, $value and $operator arguments can also be passed in with a
* single DatabaseCondition object, like this:
* @code
* $this->query->add
_w
here(
* $this->query->add
W
here(
* $this->options['group'],
* db_or()
* ->condition($field, $value, 'NOT IN')
...
...
@@ -834,7 +834,7 @@ public function clearFields() {
* @see Drupal\Core\Database\Query\ConditionInterface::condition()
* @see Drupal\Core\Database\Query\Condition
*/
function
add
_w
here
(
$group
,
$field
,
$value
=
NULL
,
$operator
=
NULL
)
{
public
function
add
W
here
(
$group
,
$field
,
$value
=
NULL
,
$operator
=
NULL
)
{
// Ensure all variants of 0 are actually 0. Thus '', 0 and NULL are all
// the default group.
if
(
empty
(
$group
))
{
...
...
core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/query/QueryTest.php
View file @
167810ff
...
...
@@ -60,7 +60,7 @@ public function setAllItems($allItems) {
$this
->
allItems
=
$allItems
;
}
public
function
add
_w
here
(
$group
,
$field
,
$value
=
NULL
,
$operator
=
NULL
)
{
public
function
add
W
here
(
$group
,
$field
,
$value
=
NULL
,
$operator
=
NULL
)
{
$this
->
conditions
[]
=
array
(
'field'
=>
$field
,
'value'
=>
$value
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment