From d436afdbf651c4c22ecd1abfd155216cc8e3eb22 Mon Sep 17 00:00:00 2001 From: s-nakajima Date: Tue, 28 Jun 2016 14:30:11 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E7=A8=AE=E9=A1=9E=E3=82=92=E6=8C=87=E5=AE=9A=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- View/Helper/TableListHelper.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/View/Helper/TableListHelper.php b/View/Helper/TableListHelper.php index 2c550006..332ee731 100644 --- a/View/Helper/TableListHelper.php +++ b/View/Helper/TableListHelper.php @@ -60,13 +60,19 @@ public function __call($method, $params) { /** * ``を表示する * + * @param string $tableType テーブル種別 `table-hover`,`table-striped`,`table-bordered`,`table-condensed` * @return string HTML + * @see http://getbootstrap.com/css/#tables */ - public function startTable() { + public function startTable($tableType = 'table-hover') { $html = ''; + if ($tableType) { + $tableType = ' ' . $tableType; + } + $html .= '
'; - $html .= '
'; + $html .= '
'; return $html; }