Class: DataObjectCache
Source Location: /blogs/b2evocore/_class_dataobjectcache.php
Class DataObjectCache
Class Overview
|
Data Object Cache Class Located in /blogs/b2evocore/_class_dataobjectcache.php [line 21] Author(s):
|
[ Top ]
Direct descendents
Method Summary
| DataObjectCache | DataObjectCache() | Constructor |
| void | add() | Add a dataobject to the cache |
| void | clear() | Clear the cache **extensively** |
| void | get_by_ID() | Get an object from cache by ID |
| void | load_all() | Load the cache **extensively** |
| void | load_list() | Load a list of objects into the cache |
| void | option_list() | Display form option list with cache contents |
[ Top ]
Methods
Constructor DataObjectCache [line 46]
|
Constructor
Parameters:| string | $objtype: | Name of DataObject class we are cacheing |
| boolean | $load_all: | true if it's OK to just load all items! |
| string | $tablename: | Name of table in database |
| string | $prefix: | Prefix of fields in the table |
| string | $dbIDname: | Name of the ID field (including prefix) |
[ Top ]
get_by_ID [line 149]
|
Get an object from cache by ID
Load the cache if necessary
Parameters:| integer | $req_ID: | ID of object to load |
| boolean | $halt_on_error: | false if you want to return false on error |
[ Top ]
load_list [line 93]
|
Load a list of objects into the cache
Parameters:| string | $req_list: | list of IDs of objects to load |
[ Top ]
