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

Class: GALExpressionRaw

Source Location: /libbase/logexpr.inc.php

Class Overview

GALExpression
   |
   --GALExpressionRaw

User defined SQL logical expression.


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 358]
User defined SQL logical expression.

At the moment this class is the only way to add "real" SQL statements like fields, comparison operators, SQL functions, ... It applies absolutely no checks for security and validity, it just returns the given string in brackets.




[ Top ]


Class Methods


constructor __construct [line 364]

GALExpressionRaw __construct( mixed $condition)

Constrct from a string (or sth. else - no checks)



Tags:

access:  public


Parameters:

mixed   $condition   Should be a valid logical SQL expression.

[ Top ]

method __toString [line 371]

string __toString( )

Returns the string value of the condition in brackets.



Tags:

return:  "(".strval($condition).")"
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