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

Inheritance diagram for DataSource

Public Member Functions

 __construct (?DataSource $originalDataSource, %Smalldb $smalldb=null, SmalldbProviderInterface $machineProvider=null, Connection $db=null)
 
 ref ($id)
 
 createQueryBuilder (string $tableAlias='this')
 
 loadData ($id)
 Load data for the state machine and set the state. More...
 
 invalidateCache ($id=null)
 Invalidate cached data. More...
 
 getConnection ()
 

Protected Attributes

Smalldb $smalldb
 
SmalldbProviderInterface $machineProvider
 
string $refClass
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( ?DataSource  $originalDataSource,
%Smalldb  $smalldb = null,
SmalldbProviderInterface  $machineProvider = null,
Connection  $db = null 
)

Member Function Documentation

◆ ref()

ref (   $id)

◆ createQueryBuilder()

createQueryBuilder ( string  $tableAlias = 'this')

◆ loadData()

loadData (   $id)

Load data for the state machine and set the state.

Implements ReferenceDataSourceInterface.

◆ invalidateCache()

invalidateCache (   $id = null)

Invalidate cached data.

Implements ReferenceDataSourceInterface.

◆ getConnection()

getConnection ( )
Returns
Connection

Member Data Documentation

◆ $smalldb

Smalldb $smalldb
protected

◆ $machineProvider

SmalldbProviderInterface $machineProvider
protected

◆ $refClass

string $refClass
protected