Conditions | 4 |
Paths | 8 |
Total Lines | 29 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function getData($colInfo, $outlineRowLevel) |
||
21 | { |
||
22 | $dxRwGut = 0x0000; // Size of row gutter |
||
23 | $dxColGut = 0x0000; // Size of col gutter |
||
24 | |||
25 | $rowLevel = $outlineRowLevel; |
||
26 | $colLevel = 0; |
||
27 | |||
28 | // Calculate the maximum column outline level. The equivalent calculation |
||
29 | // for the row outline level is carried out in setRow(). |
||
30 | foreach ($colInfo as $col) { |
||
31 | $colLevel = max($col['level'], $colLevel); |
||
32 | } |
||
33 | |||
34 | // Set the limits for the outline levels (0 <= x <= 7). |
||
35 | $colLevel = max(0, min($colLevel, 7)); |
||
36 | |||
37 | // The displayed level is one greater than the max outline levels |
||
38 | if ($rowLevel) { |
||
39 | $rowLevel++; |
||
40 | } |
||
41 | if ($colLevel) { |
||
42 | $colLevel++; |
||
43 | } |
||
44 | |||
45 | $data = pack("vvvv", $dxRwGut, $dxColGut, $rowLevel, $colLevel); |
||
46 | |||
47 | return $this->getFullRecord($data); |
||
48 | } |
||
49 | } |
||
50 |