.

DBTableRepository Class Reference
[Model]

Centralized repository of table definitions. More...

List of all members.

Static Public Member Functions

static  get ($name)
static  register (IDBTable $table, $name=false)

Static Public Attributes

static  $tables = array()

Detailed Description

Centralized repository of table definitions.

Author:
Gerd Riesselmann

Definition at line 8 of file dbtablerepository.cls.php.


Member Function Documentation

static DBTableRepository::get ( name  )  [static]

Definition at line 18 of file dbtablerepository.cls.php.

00018                                           {
00019                 return Arr::get_item(self::$tables, $name, false);
00020         }
static DBTableRepository::register ( IDBTable table,
name = false  
) [static]

Definition at line 11 of file dbtablerepository.cls.php.

00011                                                                         {
00012                 if (empty($name)) {
00013                         $name = $table->get_table_name();
00014                 }
00015                 self::$tables[$name] = $table;
00016         }

Member Data Documentation

DBTableRepository::$tables = array() [static]

Definition at line 9 of file dbtablerepository.cls.php.


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