DataSource
in package
A DataSource Singelton to load a DomainObject without a dependency to the actual DataProvider A DataProvider only needs to implement the DataProvider Interface. An example of a DataProvider is the the MapperRegistry
Tags
Table of Contents
Properties
- $instance : DataSource
- The sole instance of the DataSource
- $provider : DataProvider
- The Dataprovider object which redirects the load call to the apropriate implementation
Methods
- init() : void
- the init method has to be called before using the load() method
- load() : void
- The static load() method can be called to load the data into the DomainObject
Properties
$instance
The sole instance of the DataSource
public
static DataSource
$instance
$provider
The Dataprovider object which redirects the load call to the apropriate implementation
public
DataProvider
$provider
Methods
init()
the init method has to be called before using the load() method
public
static init(DataProvider $provider) : void
Parameters
- $provider : DataProvider
load()
The static load() method can be called to load the data into the DomainObject
public
static load(DomainObject $obj) : void
Parameters
- $obj : DomainObject