Added code comments

This commit is contained in:
alekseybobkov 2015-01-04 20:32:34 -08:00
parent 820ff72149
commit e3216614a9
1 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,10 @@ class DataTable extends FormWidgetBase
*/
public function getSaveData($value)
{
// TODO: provide a streaming implementation of saving
// data to the model. The current implementation returns
// all records at once. -ab
$dataSource = $this->table->getDataSource();
$result = [];
@ -87,6 +91,11 @@ class DataTable extends FormWidgetBase
protected function populateTableWidget()
{
$dataSource = $this->table->getDataSource();
// TODO: provide a streaming implementation of loading
// data from the model. The current implementation loads
// all records at once. -ab
$records = $this->getLoadData() ?: [];
$dataSource->initRecords((array) $records);
}