1 | <?php |
||
9 | class Header |
||
10 | { |
||
11 | private $name; |
||
12 | private $label; |
||
13 | private $gridContext; |
||
14 | private $sortField; |
||
15 | |||
16 | public function __construct(GridContext $gridContext, string $name, string $label, string $sortField = null) |
||
23 | |||
24 | public function getName() |
||
28 | |||
29 | public function getLabel() |
||
33 | |||
34 | public function isSorted(): bool |
||
40 | |||
41 | public function isSortAscending(): bool |
||
52 | |||
53 | public function getSortField(): string |
||
57 | |||
58 | public function canBeSorted(): bool |
||
62 | |||
63 | public function getUrlParametersForSort($order = 'asc') |
||
72 | } |
||
73 |