This commit is contained in:
2024-08-06 12:10:26 +03:00
parent f53346610e
commit 71b2fdfb6b
5 changed files with 65 additions and 69 deletions

View File

@ -35,7 +35,7 @@ class ViewJsonTable extends JasonTable
foreach ($this->data['meta']['rows'] as $key => $row){
if ($this->issetRow($key)){
if ($this->beforePrintCell and $this->dataJson[$key] !== null) {
$this->dataJson[$key] = $this->getCustomCeil($key, $this->dataJson[$key]);
$this->dataJson[$key] = $this->getCustomCell($key, $this->dataJson[$key]);
}
$this->html .= "<tr><th>" . $row . "</th><td>" . $this->dataJson[$key] . "</td></tr>";
}
@ -74,10 +74,10 @@ class ViewJsonTable extends JasonTable
}
// public function rows(array $data): void
// {
// foreach ($data as $key => $value) {
// $this->beforePrintCell[$key] = $value;
// }
// }
public function rows(array $data): void
{
foreach ($data as $key => $value) {
$this->beforePrintCell[$key] = $value;
}
}
}