spoof
 All Data Structures Namespaces Files Functions Variables Pages
Condition Class Reference
Inheritance diagram for Condition:
Collaboration diagram for Condition:

Public Member Functions

 __construct (\lib360\db\value\IValue $value1, $operator,\lib360\db\value\IValue $value2)

Data Fields

 $value1
 $operator
 $value2
const OPERATOR_EQUALS = 1
const OPERATOR_NOT_EQUALS = -1
const OPERATOR_GREATER_THAN = 2
const OPERATOR_GREATER_THAN_OR_EQUAL = 3
const OPERATOR_IN = 4
const OPERATOR_LESS_THAN = -2
const OPERATOR_LESS_THAN_OR_EQUAL = -3
const OPERATOR_NOT_IN = -4

Detailed Description

Simple DB condition class.

This class is used to describe a simple database condition that uses the left side, operator, and the right side to evaluate the statement.


Constructor & Destructor Documentation

__construct ( \lib360\db\value\IValue  $value1,
  $operator,
\lib360\db\value\IValue  $value2 
)

Constructor.

Instantiates a database condition object with the given left side value, operator, right side value

Parameters:
\lib360\db\value\IValue$value1the left side of the condition
string$operatordatabase condition operator
\lib360\db\value\IValue$value2the right side of the condition

Field Documentation

$operator

Condition operator. Property used to store the operator for use with the database condition.

$value1

Value of the left side of the condition. Property used to store the value of the left side of the database condition.

$value2

Value of the right side of the condition. Property used to store the value of the right side of the database condition.

const OPERATOR_EQUALS = 1

Constant for equals operator

const OPERATOR_GREATER_THAN = 2

Constant for greater than operator

const OPERATOR_GREATER_THAN_OR_EQUAL = 3

Constant for greater than or equals operator

const OPERATOR_IN = 4

Constant for in operator

const OPERATOR_LESS_THAN = -2

Constant for less than operator

const OPERATOR_LESS_THAN_OR_EQUAL = -3

Constant for less than or equals operator

const OPERATOR_NOT_EQUALS = -1

Constant for not equals operator

const OPERATOR_NOT_IN = -4

Constant for not in operator


The documentation for this class was generated from the following file: