libSmalldb  v2.0.2
Public Member Functions | List of all members
DataSource Class Reference

Inheritance diagram for DataSource

Public Member Functions

 __construct (Smalldb $smalldb, SmalldbProviderInterface $machineProvider, EntityRepository $repository)
 
 loadData ($id)
 Load data for the state machine and set the state. More...
 
 ref ($id)
 
 invalidateCache ($id=null)
 Invalidate cached data. More...
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Smalldb  $smalldb,
SmalldbProviderInterface  $machineProvider,
EntityRepository  $repository 
)

Member Function Documentation

◆ loadData()

loadData (   $id)

Load data for the state machine and set the state.

Implements ReferenceDataSourceInterface.

◆ ref()

ref (   $id)

◆ invalidateCache()

invalidateCache (   $id = null)

Invalidate cached data.

Implements ReferenceDataSourceInterface.