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

Procedural File: flatfile.php

Source Location: /flatfile.php



Classes:

Flatfile
Implements simple but powerful flat file database storage and retrieval
WhereClause
Used to test rows in a database table, like the WHERE clause in an SQL statement.
SimpleWhereClause
Implements a single WHERE clause that does simple comparisons of a field with a value.
ListWhereClause
WhereClause class to match a value from a list of items
CompositeWhereClause
Abstract class that combines zero or more WhereClause objects together.
OrWhereClause
CompositeWhereClause that does an OR on all its child WhereClauses.
AndWhereClause
CompositeWhereClause that does an AND on all its child WhereClauses.
OrderBy
Stores information about an ORDER BY clause


Page Details:

Simple but powerful flatfile database

The Flatfile class and related WhereClause classes can be used for manipulating tab-delimited text files. It is designed to be a replacement for a real SQL database when the performance of a real database is not needed, or when in the prototyping stage. It supports a very powerful and extensible equivalent to the WHERE clause. It provides some equivalent to SELECT ... ORDER BY (ordering by a single field only), and no implementation of JOINs or GROUP BY.




Tags:

license:  http://www.opensource.org/licenses/mit-license.php
todo:  File locking
tutorial:  Flatfile Tutorial







ASCENDING [line 48]

ASCENDING = 1
Indicates ascending order


[ Top ]



DESCENDING [line 50]

DESCENDING = -1
Indicates descending order


[ Top ]



INTEGER_COMPARISON [line 43]

INTEGER_COMPARISON = 'intcmp'
Used to indicate a comparison should be done as an integer comparison


[ Top ]



NUMERIC_COMPARISON [line 45]

NUMERIC_COMPARISON = 'numcmp'
Used to indicate a comparison should be done as an numeric (float) comparison


[ Top ]



STRING_COMPARISON [line 41]

STRING_COMPARISON = 'strcmp'
Used to indicate a comparison should be done as a string comparison


[ Top ]




intcmp [line 316]

void intcmp( mixed $a, mixed $b)

equivalent of strcmp for comparing integer, used internally for sorting and comparing



[ Top ]



numcmp [line 324]

void numcmp( mixed $a, mixed $b)

equivalent of strcmp for comparing floats, used internally for sorting and comparing



[ Top ]



Documentation generated on Mon, 7 Mar 2005 23:20:07 +0000 by phpDocumentor 1.3.0RC3