public static function DataHandler::instance in Data 8
Same name and namespace in other branches
- 6 includes/DataHandler.inc \DataHandler::instance()
- 7 includes/DataHandler.inc \DataHandler::instance()
Instantiate a TableFactory object.
Parameters
$table: The name of the table to access with this TableFactory object.
File
- includes/
DataHandler.inc, line 29 - Definition of TableFactory class.
Class
- DataHandler
- Simple access methods to table data. Can be used on any table, not just Data managed tables.
Code
public static function instance($table) {
static $handlers;
if (!isset($handlers[$table])) {
$handlers[$table] = new DataHandler($table);
}
return $handlers[$table];
}