User Tools

Site Tools


Sidebar

Dokumentation

vortex:api:tablerecordfactory

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

Implements

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();
vortex/api/tablerecordfactory.txt · Last modified: 2019/06/28 07:01 by hubbe