BinaryExpression Class Reference
[Logical expressions used in OSQL and Form]

Inheritance diagram for BinaryExpression:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($left, $right, $logic)
 toDialectString (Dialect $dialect)
 toMapped (StorableDAO $dao, JoinCapableQuery $query)
 
Returns:
BinaryExpression

 toBoolean (Form $form)

Public Attributes

const EQUALS = '='
const NOT_EQUALS = '!='
const EXPRESSION_AND = 'AND'
const EXPRESSION_OR = 'OR'
const GREATER_THAN = '>'
const GREATER_OR_EQUALS = '>='
const LOWER_THAN = '<'
const LOWER_OR_EQUALS = '<='
const LIKE = 'LIKE'
const NOT_LIKE = 'NOT LIKE'
const ILIKE = 'ILIKE'
const NOT_ILIKE = 'NOT ILIKE'
const SIMILAR_TO = 'SIMILAR TO'
const NOT_SIMILAR_TO = 'NOT SIMILAR TO'
const ADD = '+'
const SUBSTRACT = '-'
const MULTIPLY = '*'
const DIVIDE = '/'

Private Attributes

 $left = null
 $right = null
 $logic = null


Detailed Description

Definition at line 16 of file BinaryExpression.class.php.


Constructor & Destructor Documentation

BinaryExpression::__construct ( left,
right,
logic 
)

Definition at line 47 of file BinaryExpression.class.php.

References $left, $logic, and $right.


Member Function Documentation

BinaryExpression::toDialectString ( Dialect dialect  ) 

Implements DialectString.

Definition at line 54 of file BinaryExpression.class.php.

BinaryExpression::toMapped ( StorableDAO dao,
JoinCapableQuery query 
)

Returns:
BinaryExpression

Implements MappableObject.

Definition at line 67 of file BinaryExpression.class.php.

References ProtoDAO::guessAtom().

Here is the call graph for this function:

BinaryExpression::toBoolean ( Form form  ) 

Implements LogicalObject.

Definition at line 76 of file BinaryExpression.class.php.

References $left, $right, and Form::toFormValue().

Here is the call graph for this function:


Member Data Documentation

const BinaryExpression::EQUALS = '='

Definition at line 18 of file BinaryExpression.class.php.

Referenced by Expression::eq().

const BinaryExpression::NOT_EQUALS = '!='

Definition at line 19 of file BinaryExpression.class.php.

Referenced by Expression::notEq().

const BinaryExpression::EXPRESSION_AND = 'AND'

Definition at line 21 of file BinaryExpression.class.php.

Referenced by Expression::andBlock(), LogicalChain::block(), LogicalChain::calculateBoolean(), LogicalChain::expAnd(), and Expression::expAnd().

const BinaryExpression::EXPRESSION_OR = 'OR'

Definition at line 22 of file BinaryExpression.class.php.

Referenced by LogicalChain::block(), LogicalChain::calculateBoolean(), LogicalChain::expOr(), Expression::expOr(), and Expression::orBlock().

const BinaryExpression::GREATER_THAN = '>'

Definition at line 24 of file BinaryExpression.class.php.

Referenced by Expression::gt().

const BinaryExpression::GREATER_OR_EQUALS = '>='

Definition at line 25 of file BinaryExpression.class.php.

Referenced by Expression::gtEq().

const BinaryExpression::LOWER_THAN = '<'

Definition at line 27 of file BinaryExpression.class.php.

Referenced by Expression::lt().

const BinaryExpression::LOWER_OR_EQUALS = '<='

Definition at line 28 of file BinaryExpression.class.php.

Referenced by Expression::ltEq().

const BinaryExpression::LIKE = 'LIKE'

Definition at line 30 of file BinaryExpression.class.php.

Referenced by Expression::like().

const BinaryExpression::NOT_LIKE = 'NOT LIKE'

Definition at line 31 of file BinaryExpression.class.php.

Referenced by Expression::notLike().

const BinaryExpression::ILIKE = 'ILIKE'

Definition at line 32 of file BinaryExpression.class.php.

Referenced by Expression::ilike().

const BinaryExpression::NOT_ILIKE = 'NOT ILIKE'

Definition at line 33 of file BinaryExpression.class.php.

Referenced by Expression::notIlike().

const BinaryExpression::SIMILAR_TO = 'SIMILAR TO'

Definition at line 35 of file BinaryExpression.class.php.

Referenced by Expression::similar().

const BinaryExpression::NOT_SIMILAR_TO = 'NOT SIMILAR TO'

Definition at line 36 of file BinaryExpression.class.php.

Referenced by Expression::notSimilar().

const BinaryExpression::ADD = '+'

Definition at line 38 of file BinaryExpression.class.php.

Referenced by Expression::add().

const BinaryExpression::SUBSTRACT = '-'

Definition at line 39 of file BinaryExpression.class.php.

Referenced by Expression::sub().

const BinaryExpression::MULTIPLY = '*'

Definition at line 40 of file BinaryExpression.class.php.

Referenced by Expression::mul().

const BinaryExpression::DIVIDE = '/'

Definition at line 41 of file BinaryExpression.class.php.

Referenced by Expression::div().

BinaryExpression::$left = null [private]

Definition at line 43 of file BinaryExpression.class.php.

Referenced by __construct(), and toBoolean().

BinaryExpression::$right = null [private]

Definition at line 44 of file BinaryExpression.class.php.

Referenced by __construct(), and toBoolean().

BinaryExpression::$logic = null [private]

Definition at line 45 of file BinaryExpression.class.php.

Referenced by __construct().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:56:59 2007 for onPHP by  doxygen 1.5.4