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

Inheritance diagram for DataLoader

Public Member Functions

 fetch (Statement $stmt)
 
 fetchAll (Statement $stmt)
 
 fetchAllIter (Statement $stmt)
 
 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
 

Member Function Documentation

◆ fetch()

fetch ( Statement  $stmt)

PhpUndefinedMethodInspection

◆ fetchAll()

fetchAll ( Statement  $stmt)
Returns
ReferenceInterface[]

PhpUndefinedMethodInspection

◆ fetchAllIter()

fetchAllIter ( Statement  $stmt)
Returns
iterable<ReferenceInterface>
Todo:
Return a proper collection which provides rowCount() and other useful features.

PhpUndefinedMethodInspection

◆ ref()

ref (   $id)
inherited

◆ createQueryBuilder()

createQueryBuilder ( string  $tableAlias = 'this')
inherited

◆ loadData()

loadData (   $id)
inherited

Load data for the state machine and set the state.

Implements ReferenceDataSourceInterface.

◆ invalidateCache()

invalidateCache (   $id = null)
inherited

Invalidate cached data.

Implements ReferenceDataSourceInterface.

◆ getConnection()

getConnection ( )
inherited
Returns
Connection

Member Data Documentation

◆ $smalldb

Smalldb $smalldb
protectedinherited

◆ $machineProvider

SmalldbProviderInterface $machineProvider
protectedinherited

◆ $refClass

string $refClass
protectedinherited