1 | <?php |
||
9 | class Header |
||
10 | { |
||
11 | private $name; |
||
12 | private $label; |
||
13 | private $template; |
||
14 | private $gridContext; |
||
15 | private $sortField; |
||
16 | |||
17 | public function __construct(GridContext $gridContext, string $template, string $name, string $label, string $sortField = null) |
||
25 | |||
26 | public function getName(): string |
||
30 | |||
31 | public function getLabel(): string |
||
35 | |||
36 | public function getTemplate(): string |
||
40 | |||
41 | public function isSorted(): bool |
||
47 | |||
48 | public function isSortAscending(): bool |
||
59 | |||
60 | public function getSortField(): string |
||
64 | |||
65 | public function canBeSorted(): bool |
||
69 | |||
70 | public function getUrlParametersForSort($order = 'asc'): array |
||
79 | } |
||
80 |