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

Class: GALExpressionAND

Source Location: /libbase/logexpr.inc.php

Class Overview

GALExpression
   |
   --GALExpressionAND

The AND 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 147]
The AND operator.

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




[ Top ]


Class Methods


constructor __construct [line 161]

GALExpressionAND __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 180]

GALExpression getLeft( )

Left operand.



Tags:

return:  The left operand.
access:  public


[ Top ]

method getRight [line 201]

GALExpression getRight( )

Right operand.



Tags:

return:  The right operand.
access:  public


[ Top ]

method setLeft [line 189]

void setLeft( GALExpression $left)

Set the left operand.

If null is passed, TRUE is used as it is the neutral element of the AND operator.




Tags:

access:  public


Parameters:

GALExpression   $left   The new left operand.

[ Top ]

method setRight [line 210]

void setRight( GALExpression $right)

Set the right operand.

If null is passed, TRUE is used as it is the neutral element of the AND operator.




Tags:

access:  public


Parameters:

GALExpression   $right   The new right operand.

[ Top ]

method __toString [line 171]

string __toString( )

SQL string representation of this logical expression.

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




Tags:

return:  "(($leftstr) AND ($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