Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function getHeaders() |
||
30 | { |
||
31 | $headers = []; |
||
32 | foreach(array_keys($this->gridMetadata->getColumns()) as $headerName) { |
||
33 | $sort = null; |
||
34 | if (isset($this->orderings[$headerName])) { |
||
35 | $sort = $this->orderings[$headerName]; |
||
36 | } |
||
37 | |||
38 | $headers[$headerName] = new Header($headerName, null !== $sort, $sort === 'asc'); |
||
39 | } |
||
40 | |||
41 | return $headers; |
||
42 | } |
||
43 | |||
53 |