PluginProbe
Disk Usage Insights / 1.0
Disk Usage Insights v1.0
trunk 1.0 1.10 1.11 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
disk-usage-insights / src / Frontend / Table.php

Table.php in Disk Usage Insights 1.0, at src/Frontend/Table.php

26 lines 651 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Mgleis\DiskUsageInsights\Frontend;
3
4 class Table {
5
6 private /** @var string */ $headline;
7 private /** @var array */ $columnNames = [];
8 private /** @var array */ $columnCss = [];
9
10 public function __construct(string $headline, array $columnNames = null, array $columnCss = null)
11 {
12 $this->headline = $headline;
13 if ($columnNames !== null) {
14 $this->columnNames = $columnNames;
15 }
16 if ($columnCss !== null) {
17 $this->columnCss = $columnCss;
18 }
19 }
20
21 public function output(array $table) {
22 include __DIR__ . '/../../views/blocks/table.php';
23 }
24
25 }
26