| 1 | <?php |
||
| 9 | class Header |
||
| 10 | { |
||
| 11 | private $name; |
||
| 12 | private $gridContext; |
||
| 13 | private $sortField; |
||
| 14 | |||
| 15 | public function __construct(GridContext $gridContext, string $name, string $sortField = null) |
||
| 21 | |||
| 22 | public function getName() |
||
| 26 | |||
| 27 | public function isSorted(): bool |
||
| 33 | |||
| 34 | public function isSortAscending(): bool |
||
| 45 | |||
| 46 | public function getSortField(): string |
||
| 50 | |||
| 51 | public function canBeSorted(): bool |
||
| 55 | |||
| 56 | public function getUrlParametersForSort($order = 'asc') |
||
| 65 | } |
||
| 66 |