Table of Contents

TableFactory

The TableRecordFactory is a factory cacheing all TableRecords loaded by Vortex. All instances of TableRecord have to be instanciated through the TableRecordFactory. The factory keeps a cache of the TableRecord instances which will be returned. If no chache exists a new instance of TableRecord class is created, put into cache and returned.

Extends

CacheObject

Implements

Persistant

Constants

Methods

Code Examples

Get a TableRecord from the factory

TableRecordFactory::getTableRecord( 'myTable', $idrecord );

Get a new TableRecord from the factory

TableRecordFactory::getTableRecord( 'myTable', 0 );

Clear the factory cache

TableRecordFactory::clear();