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

Class: GALExpressionNOT

Source Location: /libbase/logexpr.inc.php

Class Overview

GALExpression
   |
   --GALExpressionNOT

The NOT 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 304]
The NOT operator.

This operator just adds a NOT to the logical expression passed in the constructor.




[ Top ]


Class Methods


constructor __construct [line 313]

GALExpressionNOT __construct( GALExpression $cond, GALExpression $left)

Construct from a logical expressions.



Tags:

access:  public


Parameters:

GALExpression   $left   The operand.
GALExpression   $cond  

[ Top ]

method getOperand [line 320]

GALExpression getOperand( )

Get the operand.



Tags:

return:  The operand.
access:  public


[ Top ]

method setOperand [line 331]

void setOperand( GALExpression $op)

Set the operand.

If null is passed, FALSE is used, the whole condition therefor is TRUE. There is no reason why it is this way apart from that I didn't want to write a

  1. throw
statement.




Tags:

access:  public


Parameters:

GALExpression   $op   The new operand.

[ Top ]

method __toString [line 343]

string __toString( )

SQL string representation of this logical expression.

Get the string value of $cond and add NOT.




Tags:

return:  "( NOT ($condstr))"
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