libSmalldb  v2.0.2
Public Member Functions | List of all members
ReferenceDataSourceInterface Interface Reference

Inheritance diagram for ReferenceDataSourceInterface

Public Member Functions

 loadData ($id)
 Load data for the state machine and set the state. More...
 
 invalidateCache ($id=null)
 Invalidate cached data. More...
 

Member Function Documentation

◆ loadData()

loadData (   $id)

Load data for the state machine and set the state.

Returns
null|array|object
Todo:
Add locking mode so that we can lock an entity before invoking a transition.

Implemented in DataSource, DataSource, and DummyDataSource.

◆ invalidateCache()

invalidateCache (   $id = null)

Invalidate cached data.

Implemented in DataSource, DataSource, and DummyDataSource.