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.


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 47]

ASCENDING = 1
Indicates ascending order


[ Top ]



AUTO_COMPARISON [line 40]

AUTO_COMPARISON =
Used to indicate a comparison should be done using PHPs builtin method for comparisons.


[ Top ]



DESCENDING [line 49]

DESCENDING = -1
Indicates descending order


[ Top ]



INTEGER_COMPARISON [line 44]

INTEGER_COMPARISON = 2
Used to indicate a comparison should be done as an integer comparison (vars will be converted to integers before comparing).


[ Top ]



STRING_COMPARISON [line 42]

STRING_COMPARISON = 1
Used to indicate a comparison should be done as a string comparison (vars will be converted to strings before comparing).


[ Top ]




Documentation generated on Mon, 28 Feb 2005 23:04:36 +0000 by phpDocumentor 1.3.0RC3