Class: I2CE CachedForm (4.1.12)

From IHRIS Wiki
Revision as of 09:41, 18 August 2015 by Sovello (talk | contribs) (Created page with "{{otherversions|Class: I2CE_CachedForm}} This article describes the class ''I2CE_CachedForm'' . *Extends the class: I2CE_Fuzzy. *Location: Par...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.

updateCachedTable()

Updates the cached table if it exists with a given record.

Inherited Methods

_hasMethod()

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

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()