PluginProbe
Disk Usage Insights / 1.2
Disk Usage Insights v1.2
trunk 1.0 1.10 1.11 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
← All changes | src/Frontend/Table.php +1 -9 1.71.2 View file →
@@ -7,11 +7,10 @@
7 7 private /** @var array */ $columnNames = [];
8 8 private /** @var array */ $columnCss = [];
9 9 private /** @var array */ $percentBar = null; // [$colDisplay, $colSource]
10 10 private /** @var array */ $data = [];
11 - private ?Pagination $pagination = null;
12 11
13 - public function __construct(string $headline, array $columnNames = [], array $columnCss = [])
12 + public function __construct(string $headline, array $columnNames = null, array $columnCss = null)
14 13 {
15 14 $this->headline = $headline;
16 15 if ($columnNames !== null) {
17 16 $this->columnNames = $columnNames;
@@ -28,20 +27,13 @@
28 27 }
29 28
30 29 public function output() {
31 30 $table = $this->data;
32 - $pagination = $this->pagination;
33 31 include __DIR__ . '/../../views/blocks/table.php';
34 32 }
35 33
36 34 public function withPercentBar(int $colDisplay, int $colSource): self {
37 35 $this->percentBar = [$colDisplay, $colSource];
38 -
39 - return $this;
40 - }
41 -
42 - public function withPagination(Pagination $pagination): self {
43 - $this->pagination = $pagination;
44 36
45 37 return $this;
46 38 }
47 39