7.22. Opt_Component_Interface
7.22.8. setDatasource()
7.22.7. set()
« Previous
7.22.9. setView()
Next »

7.22.8. setDatasource()

ConstructAbstract method
Visibilitypublic
Referencevoid setDatasource(mixed $datasource)
Argument list
$datasource - mixed
The data passed from the datasource to the component.

setDatasource() captures the value from the datasource attribute of the component port.

Prior to OPT 2.0-beta3 the $datasource argument was passed by reference which has been removed later.

7.22.8. setDatasource()
7.22. Opt_Component_Interface
« Previous
7.22.7. set()
Next »
7.22.9. setView()