TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
extbase
Classes
Persistence
Generic
Qom
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
62
class
Comparison
implements
ComparisonInterface
63
{
67
protected
$operand1
;
68
72
protected
$operator
;
73
77
protected
$operand2
;
78
82
protected
$parameterIdentifier
;
83
91
public
function
__construct
(
PropertyValueInterface
$operand1
,
$operator
,
$operand2
)
92
{
93
$this->operand1 =
$operand1
;
94
$this->
operator
=
$operator
;
95
$this->operand2 =
$operand2
;
96
}
97
103
public
function
getOperand1
()
104
{
105
return
$this->operand1
;
106
}
107
113
public
function
getOperator
()
114
{
115
$operator
=
$this->operator
;
116
117
if
($this->
getOperand2
() === null) {
118
if
(
$operator
===
QueryInterface::OPERATOR_EQUAL_TO
) {
119
$operator
=
QueryInterface::OPERATOR_EQUAL_TO_NULL
;
120
}
elseif
(
$operator
===
QueryInterface::OPERATOR_NOT_EQUAL_TO
) {
121
$operator
=
QueryInterface::OPERATOR_NOT_EQUAL_TO_NULL
;
122
}
123
}
124
125
return
$operator
;
126
}
127
133
public
function
getOperand2
()
134
{
135
return
$this->operand2
;
136
}
137
142
public
function
setParameterIdentifier
(
$parameterIdentifier
)
143
{
144
$this->parameterIdentifier =
$parameterIdentifier
;
145
}
146
150
public
function
getParameterIdentifier
()
151
{
152
return
$this->parameterIdentifier
;
153
}
154
161
public
function
collectBoundVariableNames
(&$boundVariables)
162
{
163
}
164
}
Generated on Wed Nov 11 2015 01:51:51 for TYPO3 by
1.8.3