summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemTable/TableRowLayout.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--library/Icingadb/Widget/ItemTable/TableRowLayout.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/library/Icingadb/Widget/ItemTable/TableRowLayout.php b/library/Icingadb/Widget/ItemTable/TableRowLayout.php
new file mode 100644
index 0000000..b9ce022
--- /dev/null
+++ b/library/Icingadb/Widget/ItemTable/TableRowLayout.php
@@ -0,0 +1,26 @@
+<?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()
+ );
+ }
+}