Methods
Constructor
__construct(int | float | bool | string $left, string $operator, int | float | bool | string $right, string $leftType, string $rightType)
Parameters
$left
intfloatboolstring
$operator
string
$right
intfloatboolstring
$leftType
string
TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}
$rightType
string
TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}
Get predicate parts for where statement
getExpressionData() : array
Get left side of operator
getLeft() : int | float | bool | string
Returns
int
float
bool
string
Get parameter type on left side of operator
getLeftType() : string
Get operator string
getOperator() : string
Get right side of operator
getRight() : int | float | bool | string
Returns
int
float
bool
string
Get parameter type on right side of operator
getRightType() : string
Set parameter type for left side of operator
setLeftType(string $type) : \Zend\Db\Sql\Predicate\Operator
Parameters
$type
string
TYPE_IDENTIFIER or TYPE_VALUE {@see allowedTypes}
Exceptions
Returns
Set parameter type for right side of operator
setRightType(string $type) : \Zend\Db\Sql\Predicate\Operator
Parameters
$type
string
TYPE_IDENTIFIER or TYPE_VALUE {@see allowedTypes}
Exceptions
Returns
Normalize Argument
normalizeArgument(mixed $argument, string $defaultType) : array
Inherited
inherited_from |
\Zend\Db\Sql\AbstractExpression::normalizeArgument() |
Parameters
$argument
mixed
$defaultType
string
Exceptions
Returns
array
buildNormalizedArgument()
buildNormalizedArgument(mixed $argument, string $argumentType) : array
Inherited
inherited_from |
\Zend\Db\Sql\AbstractExpression::buildNormalizedArgument() |
Parameters
$argument
mixed
$argumentType
string
Exceptions
Returns
array
Properties
$allowedTypes
$allowedTypes : string[]
$left
$left : int | float | bool | string
$leftType
$leftType : string
$operator
$operator : string
$right
$right : int | float | bool | string
$rightType
$rightType : string
Constants
OPERATOR_EQUAL_TO
OPERATOR_EQUAL_TO
OPERATOR_GREATER_THAN
OPERATOR_GREATER_THAN
OPERATOR_GREATER_THAN_OR_EQUAL_TO
OPERATOR_GREATER_THAN_OR_EQUAL_TO
OPERATOR_LESS_THAN
OPERATOR_LESS_THAN
OPERATOR_LESS_THAN_OR_EQUAL_TO
OPERATOR_LESS_THAN_OR_EQUAL_TO
OPERATOR_NOT_EQUAL_TO
OPERATOR_NOT_EQUAL_TO
TYPE_IDENTIFIER
TYPE_IDENTIFIER
Inherited
inherited_from |
\Zend\Db\Sql\ExpressionInterface::TYPE_IDENTIFIER |
inherited_from |
\Zend\Db\Sql\AbstractExpression::TYPE_IDENTIFIER |
TYPE_LITERAL
TYPE_LITERAL
Inherited
inherited_from |
\Zend\Db\Sql\ExpressionInterface::TYPE_LITERAL |
inherited_from |
\Zend\Db\Sql\AbstractExpression::TYPE_LITERAL |
TYPE_SELECT
TYPE_SELECT
Inherited
inherited_from |
\Zend\Db\Sql\ExpressionInterface::TYPE_SELECT |
inherited_from |
\Zend\Db\Sql\AbstractExpression::TYPE_SELECT |
TYPE_VALUE
TYPE_VALUE
Inherited
inherited_from |
\Zend\Db\Sql\ExpressionInterface::TYPE_VALUE |
inherited_from |
\Zend\Db\Sql\AbstractExpression::TYPE_VALUE |