This commit is contained in:
2024-08-08 14:24:53 +03:00
3 changed files with 6 additions and 6 deletions

View File

@ -307,4 +307,5 @@ class ListJsonTable extends JasonTable
$this->beforePrintCell[$key] = $value;
}
}
}

View File

@ -28,9 +28,9 @@ class ViewJsonTable extends JasonTable
$paramsStr = $this->createParams($this->data['meta']['params']);
//Хук перед выводом ячейки
if (isset($this->beforePrintTable)){
$hook = $this->beforePrintTable;
$this->html = $hook();
if (isset($this->beforePrintHook)){
$hook = $this->beforePrintHook;
$this->html .= $hook();
}
$this->html .= "<table $paramsStr>";
@ -65,8 +65,8 @@ class ViewJsonTable extends JasonTable
{
$this->html .= "</table>";
if(isset($this->afterPrintTable)){
$hookAfter = $this->afterPrintTable;
if(isset($this->afterPrintHook)){
$hookAfter = $this->afterPrintHook;
$this->html .= $hookAfter();
}
}