spoof
 All Data Structures Namespaces Files Functions Variables Pages
TableFactory Class Reference

Static Public Member Functions

static get ($db, $table)
static cache (\lib360\db\data\IStore $table)

Static Protected Attributes

static $cache = array()

Detailed Description

Static factory class for loading tables on-the-fly


Member Function Documentation

static cache ( \lib360\db\data\IStore  $table)
static

Caches supplied table object.

Parameters:
\lib360\db\data\IStore$tableobject to cache

Here is the caller graph for this function:

static get (   $db,
  $table 
)
static

Creates and returns a new instance of object, or retrieves it from cache if previously accessed.

Parameters:
string$dbdatabase alias
string$tabletable name
Returns:
object

Here is the call graph for this function:


Field Documentation

$cache = array()
staticprotected

Internal object cache for table objects


The documentation for this class was generated from the following file: