User Tools

Site Tools


Sidebar

Dokumentation

vortex:api:relationfactory

RelationFactory

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

Extends

Implements

Constants

Methods

Code Examples

Get a Relation from the factory

$relation = RelationFactory::getRelation( $idrelation );

Clear the factory cache (this you very seldom want to do)

RelationFactory::clear();
vortex/api/relationfactory.txt · Last modified: 2019/06/28 06:59 by hubbe