Manages associations of keyed labels to SQL queries.
This class is used to abstract the SQL languange away from the use in PHP source code. The normal usage is to load a specified phrasebook from a file at the start of a script and then to call out the phrases as needed, providing needed variable bindings as required.
The phrasebook file uses SQL style comments to allow it to be syntaxed highlighted in SQL by most editors.
Located in /include/classes/phrasebook/PhraseBook.inc (line 25)
a hashed association of keys/phrase pairs
PhraseBook Constructor.
Retrieve an existing phrase from the phrasebok, by name
Given a key, this function returns the associated phrase or FALSE if no such phrase
Populated the PhraseBook from a file
This is the most common way to populate a phrase book.
Populates the PhraseBook from a string
This function provides all the parsing needed to load a phrase book. In normal usage, the phrase book is alwasy loaded from a file, but in rare (and testing) cases, its useful to load "raw" strings.
Documentation generated on Tue, 25 Apr 2006 13:07:43 -0400 by phpDocumentor 1.3.0RC3