function getTable($type = null, $prefix = null, $table = null, $key = 'id') { if (is_null($this->tableobject)) { if (is_null($type)) { $type = $this->objname; } if (is_null($prefix)) { $prefix = 'Table'; } if (is_null($table)) { $table = $this->table; } $this->tableobject =& RdbsTable::getInstanceAutofields($type, $prefix, $table, $key); } return $this->tableobject; }