SourceForge.net LogoPHPGallue
[ class tree: libbase ] [ index: libbase ] [ all elements ]

Class: GALExpressionOR

Source Location: /libbase/logexpr.inc.php

Class Overview

GALExpression
   |
   --GALExpressionOR

The OR operator.


Methods


Inherited Methods

Class: GALExpression

GALExpression::eand()
Connect two or more statements with AND.
GALExpression::enot()
Invert this logical expression.
GALExpression::eor()
Connect two or more statements with OR.
GALExpression::__toString()
String representation of this logical expression.

Class Details

[line 226]
The OR operator.

This operator is binary; if you want to OR together more GALExpressions, use GALExpression::eor().




[ Top ]


Class Methods


constructor __construct [line 240]

GALExpressionOR __construct( GALExpression $left, GALExpression $right)

Construct from two logical expressions.



Tags:

access:  public


Parameters:

GALExpression   $left   Left operand.
GALExpression   $right   Right operand.

[ Top ]

method getLeft [line 259]

GALExpression getLeft( )

Left operand.



Tags:

return:  The left operand.
access:  public


[ Top ]

method getRight [line 280]

GALExpression getRight( )

Right operand.



Tags:

return:  The right operand.
access:  public


[ Top ]

method setLeft [line 268]

void setLeft( GALExpression $left, GALExpression $right)

Set the right operand.

If null is passed, FALSE is used as it is the neutral element of the OR operator.




Tags:

access:  public


Parameters:

GALExpression   $right   The new right operand.
GALExpression   $left  

[ Top ]

method setRight [line 289]

void setRight( GALExpression $right)

Set the right operand.

If null is passed, FALSE is used as it is the neutral element of the OR operator.




Tags:

access:  public


Parameters:

GALExpression   $right   The new right operand.

[ Top ]

method __toString [line 250]

string __toString( )

SQL string representation of this logical expression.

Get the string values of $left and $right operand and connect them with OR.




Tags:

return:  "(($leftstr) OR ($rightstr))"
access:  public


Overrides GALExpression::__toString() (String representation of this logical expression.)

[ Top ]


Documentation generated on Wed, 16 Aug 2006 15:36:19 +0200 by phpDocumentor 1.3.0RC6