Class QWatcherDB
QWatcher is a helper class that allows controls and forms to watch database tables and automatically redraw when changes are detected. It works together with the codegened model classes, the controls, and the QForm class to draw or refresh when needed.
Static functions handle the database updating, while member variables store the current state of a control's watched tables.
This Base class is a template on which to build watchers that use specific caching mechanisms. See QWatcher to select the caching mechanism you would like to use.
- QBaseClass
- QWatcherBase
- QWatcherDB
Located at includes/watchers/QWatcherDB.class.php
public
|
|
public
boolean
|
|
public static
|
GetKey(),
RegisterTable(),
Watch(),
WatchersChanged()
|
OverrideAttributes(),
__call(),
__get(),
__set()
|
public static
|
$intDbIndex
The table name which will keep info about changed tables. It must have the following columns: 1. table_key: varchar(largest key size) 2. time: varchar(30) |
#
__WATCHER_DB_INDEX__
|
public static
|
$strTableName
|
#
__WATCHER_TABLE_NAME__
|
$blnWatcherChanged,
$strAppKey,
$strWatchedKeys
|