flatfile
[ class tree: flatfile ] [ index: flatfile ] [ all elements ]

Class: SimpleWhereClause

Source Location: /flatfile.php

Class Overview

WhereClause
   |
   --SimpleWhereClause

Implements a single WHERE clause that does simple comparisons of a field with a value.


Methods


Inherited Methods

Class: WhereClause

WhereClause::testRow()
Tests a table row object

Class Details

[line 371]
Implements a single WHERE clause that does simple comparisons of a field with a value.



[ Top ]


Class Methods


constructor SimpleWhereClause [line 401]

SimpleWhereClause SimpleWhereClause( int $field, string $operator, mixed $value, [int $compare_type = STRING_COMPARISON])

Creates a new WhereClause object that does a comparison of a field and a value.

This will be the most commonly used type of WHERE clause. It can do comparisons of the sort "$tablerow[$field] operator $value" where 'operator' is one of:

  • = (equals)
  • != (not equals)
  • > (greater than)
  • < (less than)




Parameters:

int   $field   The index (in the table row) of the field to test
string   $operator   The comparison operator, one of "=", "!=", "<", ">"
mixed   $value   The value to compare to.
int   $compare_type   The comparison method to use - either AUTO_COMPARISON (default), STRING_COMPARISON or INTEGER_COMPARISON

[ Top ]

method testRow [line 409]

void testRow( mixed $tablerow)



Overrides WhereClause::testRow() (Tests a table row object)

[ Top ]


Documentation generated on Sat, 5 Mar 2005 02:26:26 +0000 by phpDocumentor 1.3.0RC3