From 6a45a509558e5aa12da31691073aeb97ea9556eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Schneider?= Date: Tue, 20 Mar 2012 21:06:33 +0100 Subject: [PATCH] Modernizing Tabulator --- .../Versions/Tabulator.0.0.1/Tabulator.cli.php | 10 ++++++++-- .../Versions/Tabulator.0.0.1/Tabulator.html.php | 14 +++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.cli.php b/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.cli.php index 256b314..0317078 100644 --- a/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.cli.php +++ b/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.cli.php @@ -40,12 +40,18 @@ class TabulatorColumnCli extends TabulatorColumn { class TabulatorCli extends Tabulator { + public $iRepeatHeadersEvery = 20; + public function getSep() { return " "; } - public function repeatHeadersEvery() { - return 10; + public function repeatHeadersEvery($iNum = FALSE) { + if(intval($iNum) > 0) { + $this->iRepeatHeadersEvery = intval($iNum); + } + + return $this->iRepeatHeadersEvery; } protected function wrapHeaders($sHeaders) { diff --git a/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.html.php b/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.html.php index 49780ab..46593ec 100644 --- a/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.html.php +++ b/CoreVersions/Baikal_0.1/Frameworks/Versions/Tabulator.0.0.1/Tabulator.html.php @@ -23,6 +23,12 @@ class TabulatorColumnHtml extends TabulatorColumn { class TabulatorHtml extends Tabulator { + private $sCssClass = FALSE; + + public function __construct($sCssClass = FALSE) { + $this->sCssClass = $sCssClass; + } + public function getSep() { return ""; } @@ -37,7 +43,13 @@ class TabulatorHtml extends Tabulator { } function renderOpen() { - return ""; + $sClass = "tabulator"; + + if($this->sCssClass !== FALSE) { + $sClass .= " " . trim($this->sCssClass); + } + + return "
"; } function renderClose() {