TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
Comparison.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Persistence\Generic\Qom
;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
17
use
TYPO3\CMS\Extbase\Persistence\QueryInterface
;
18
63
class
Comparison
implements
ComparisonInterface
64
{
68
protected
$operand1
;
69
73
protected
$operator
;
74
78
protected
$operand2
;
79
87
public
function
__construct
(
PropertyValueInterface
$operand1
,
$operator
,
$operand2
)
88
{
89
$this->operand1 =
$operand1
;
90
$this->
operator
=
$operator
;
91
$this->operand2 =
$operand2
;
92
}
93
99
public
function
getOperand1
()
100
{
101
return
$this->operand1
;
102
}
103
109
public
function
getOperator
()
110
{
111
$operator
=
$this->operator
;
112
113
if
($this->
getOperand2
() ===
null
) {
114
if
(
$operator
===
QueryInterface::OPERATOR_EQUAL_TO
) {
115
$operator
=
QueryInterface::OPERATOR_EQUAL_TO_NULL
;
116
} elseif (
$operator
===
QueryInterface::OPERATOR_NOT_EQUAL_TO
) {
117
$operator
=
QueryInterface::OPERATOR_NOT_EQUAL_TO_NULL
;
118
}
119
}
120
121
return
$operator
;
122
}
123
129
public
function
getOperand2
()
130
{
131
return
$this->operand2
;
132
}
133
139
public
function
collectBoundVariableNames
(&$boundVariables)
140
{
141
}
142
}
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\collectBoundVariableNames
collectBoundVariableNames(&$boundVariables)
Definition:
Comparison.php:136
TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_NOT_EQUAL_TO_NULL
const OPERATOR_NOT_EQUAL_TO_NULL
Definition:
QueryInterface.php:45
TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition:
QueryInterface.php:26
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\getOperand1
PropertyValueInterface getOperand1()
Definition:
Comparison.php:96
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\getOperand2
mixed getOperand2()
Definition:
Comparison.php:126
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\getOperator
string getOperator()
Definition:
Comparison.php:106
TYPO3\CMS\Extbase\Persistence\Generic\Qom\PropertyValueInterface
Definition:
PropertyValueInterface.php:29
TYPO3\CMS\Extbase\Persistence\Generic\Qom\ComparisonInterface
Definition:
ComparisonInterface.php:61
TYPO3\CMS\Extbase\Persistence\Generic\Qom
Definition:
AndInterface.php:2
TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO
const OPERATOR_EQUAL_TO
Definition:
QueryInterface.php:30
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\__construct
__construct(PropertyValueInterface $operand1, $operator, $operand2)
Definition:
Comparison.php:84
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\$operator
int $operator
Definition:
Comparison.php:71
TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_NOT_EQUAL_TO
const OPERATOR_NOT_EQUAL_TO
Definition:
QueryInterface.php:40
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\$operand2
mixed $operand2
Definition:
Comparison.php:75
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison
Definition:
Comparison.php:64
TYPO3\CMS\Extbase\Persistence\QueryInterface\OPERATOR_EQUAL_TO_NULL
const OPERATOR_EQUAL_TO_NULL
Definition:
QueryInterface.php:35
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison\$operand1
PropertyValueInterface $operand1
Definition:
Comparison.php:67
doxygen
typo3
sysext
extbase
Classes
Persistence
Generic
Qom
Comparison.php
Generated on Tue Oct 5 2021 01:57:29 for TYPO3CMS by
1.8.18