category Zend
package Zend_Db
subpackage Sql

 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

Returns

array

Get left side of operator

getLeft() : int | float | bool | string

Returns

intfloatboolstring

Get parameter type on left side of operator

getLeftType() : string

Returns

string

Get operator string

getOperator() : string

Returns

string

Get right side of operator

getRight() : int | float | bool | string

Returns

intfloatboolstring

Get parameter type on right side of operator

getRightType() : string

Returns

string

Set left side of operator

setLeft(int | float | bool | string $left) : \Zend\Db\Sql\Predicate\Operator

Parameters

$left

intfloatboolstring

Returns

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

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

Set operator string

setOperator(string $operator) : \Zend\Db\Sql\Predicate\Operator

Parameters

$operator

string

Returns

Set right side of operator

setRight(int | float | bool | string $value) : \Zend\Db\Sql\Predicate\Operator

Parameters

$value

intfloatboolstring

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

\Zend\Db\Sql\Exception\InvalidArgumentException

Returns

 Properties

 

$allowedTypes

$allowedTypes 

 

$left

$left 

 

$leftType

$leftType 

 

$operator

$operator 

 

$right

$right 

 

$rightType

$rightType 

 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 

 

OP_EQ

OP_EQ 

 

OP_GT

OP_GT 

 

OP_GTE

OP_GTE 

 

OP_LT

OP_LT 

 

OP_LTE

OP_LTE 

 

OP_NE

OP_NE