Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d3fe0d43
Commit
d3fe0d43
authored
Jun 17, 2013
by
webchick
Browse files
Issue
#2020377
by LinL | xjm: Rename Views method opNotEnds() to opNotEndsWith().
parent
b5279723
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
View file @
d3fe0d43
...
...
@@ -116,7 +116,7 @@ protected function opEndsWith($expression) {
$this
->
query
->
addWhereExpression
(
$this
->
options
[
'group'
],
"
$expression
LIKE
$placeholder
"
,
array
(
$placeholder
=>
'%'
.
db_like
(
$this
->
value
)));
}
protected
function
opNotEnds
(
$expression
)
{
protected
function
opNotEnds
With
(
$expression
)
{
$placeholder
=
$this
->
placeholder
();
$this
->
query
->
addWhereExpression
(
$this
->
options
[
'group'
],
"
$expression
NOT LIKE
$placeholder
"
,
array
(
$placeholder
=>
'%'
.
db_like
(
$this
->
value
)));
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
View file @
d3fe0d43
...
...
@@ -89,7 +89,7 @@ function operators() {
'not_ends'
=>
array
(
'title'
=>
t
(
'Does not end with'
),
'short'
=>
t
(
'not_ends'
),
'method'
=>
'opNotEnds'
,
'method'
=>
'opNotEnds
With
'
,
'values'
=>
1
,
),
'not'
=>
array
(
...
...
@@ -313,7 +313,7 @@ protected function opEndsWith($field) {
$this
->
query
->
addWhere
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'LIKE'
);
}
protected
function
opNotEnds
(
$field
)
{
protected
function
opNotEnds
With
(
$field
)
{
$this
->
query
->
addWhere
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'NOT LIKE'
);
}
...
...
Write
Preview
Supports
Markdown
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