|
@@ -93,7 +93,7 @@ class DataTable extends BaseContainer implements \ModulesGarden\Servers\ZimbraEm
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function setName($name)
|
|
|
|
|
|
|
+ public function setName($name = null)
|
|
|
{
|
|
{
|
|
|
$this->name = $name;
|
|
$this->name = $name;
|
|
|
return $this;
|
|
return $this;
|
|
@@ -126,7 +126,7 @@ class DataTable extends BaseContainer implements \ModulesGarden\Servers\ZimbraEm
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function setData(\ModulesGarden\Servers\ZimbraEmail\Core\UI\Interfaces\DataSetInterface $data)
|
|
|
|
|
|
|
+ public function setData($data = [])
|
|
|
{
|
|
{
|
|
|
$this->recordsSet = $data;
|
|
$this->recordsSet = $data;
|
|
|
|
|
|
|
@@ -135,7 +135,7 @@ class DataTable extends BaseContainer implements \ModulesGarden\Servers\ZimbraEm
|
|
|
|
|
|
|
|
protected function getCount()
|
|
protected function getCount()
|
|
|
{
|
|
{
|
|
|
- return count($this->recordsSet->records);
|
|
|
|
|
|
|
+ return count($this->recordsSet);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
protected function getRecords()
|
|
protected function getRecords()
|
|
@@ -169,9 +169,9 @@ class DataTable extends BaseContainer implements \ModulesGarden\Servers\ZimbraEm
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- foreach ($this->recordsSet->records as $key => $row)
|
|
|
|
|
|
|
+ foreach ($this->recordsSet as $key => $row)
|
|
|
{
|
|
{
|
|
|
- $this->recordsSet->records[$key] = $this->replaceRowData($row, $replacementFunctions);
|
|
|
|
|
|
|
+ $this->recordsSet[$key] = $this->replaceRowData($row, $replacementFunctions);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|