Documentation

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
see
MapperRegistry

Table of Contents

$instance  : DataSource
The sole instance of the DataSource
$provider  : DataProvider
The Dataprovider object which redirects the load call to the apropriate implementation
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

$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
Return values
void

load()

The static load() method can be called to load the data into the DomainObject

public static load(DomainObject $obj) : void
Parameters
$obj : DomainObject
Return values
void

Search results