From a395923aed129e5b89a99f49ed515a432d1359c9 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 30 Dec 2016 21:10:29 +0100 Subject: [PATCH] QuickTable: provide more hooks for special tables --- library/Director/Web/Table/QuickTable.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/library/Director/Web/Table/QuickTable.php b/library/Director/Web/Table/QuickTable.php index d1f9b038..69c69ea4 100644 --- a/library/Director/Web/Table/QuickTable.php +++ b/library/Director/Web/Table/QuickTable.php @@ -308,11 +308,26 @@ abstract class QuickTable implements Paginatable . $this->renderMultiselectAttributes() . '>' . "\n" . $this->renderTitles($this->getTitles()) - . "\n"; + . $this->beginTableBody(); foreach ($data as $row) { $htm .= $this->renderRow($row); } - return $htm . "\n\n"; + return $htm . $this->endTableBody() . $this->endTable(); + } + + protected function beginTableBody() + { + return "\n"; + } + + protected function endTableBody() + { + return "\n"; + } + + protected function endTable() + { + return "\n"; } /**