icingadb-web/library/Icingadb/Widget/ItemTable/TableRowLayout.php
2023-09-08 14:54:47 +02:00

26 lines
586 B
PHP

<?php
/* Icinga DB Web | (c) 2023 Icinga GmbH | GPLv2 */
namespace Icinga\Module\Icingadb\Widget\ItemTable;
use ipl\Html\BaseHtmlElement;
use ipl\Html\HtmlDocument;
trait TableRowLayout
{
protected function assembleColumns(HtmlDocument $columns): void
{
foreach ($this->createStatistics() as $objectStatistic) {
$columns->addHtml($objectStatistic);
}
}
protected function assembleTitle(BaseHtmlElement $title): void
{
$title->addHtml(
$this->createSubject(),
$this->createCaption()
);
}
}