Class: I2CE CachedForm (4.0.21)

From IHRIS Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


This article describes the class I2CE_CachedForm .

I2CE_CachedForm

Variables

$form

The form we are caching

$database

the database name (unquoted)

$table_name

the table name for this form.

$short_table_name

the table name for this form without quotes and without the databse

$last_entry_database

the database name (unquoted) where last_entry is

$formObj

An instance of the form object

$formMech

An instance of the form storage mechansim for the form

Methods

__construct()

The constructor

createCacheTable()

setup of the queries used to create and populate the cached table

dropTable()

Drops the existing cached table from the database

fastPopulate()

Method used to populate the cache table in case the form storage mechanism is DB like

generateCachedTable()

Generates the cahced table for the form

getCacheDatabase()

Get the name of the database that the cached tables are stored in.

getCachedTableName()

Get the name of the cached table for the specfiied form.

getIDs()

Get the id's of the cached forms.

getLastCachedTime()

Get the last time that this form was chached

getStaleTime()

Get the time the cached form is considered stale

isStale()

Checks to see if the cached table is stale

slowPopulate()

Method used to populate the cache table in case the form storage mechanism is not DB like

tableExists()

Check to see if the cached table for this table exists and has the the proper fields for its columns. If it is invalud, it will drop the table.

Inherited Methods

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()