Conditions | 3 |
Paths | 4 |
Total Lines | 30 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function getData($colInfo) |
||
24 | { |
||
25 | $colFirst = (isset($colInfo['col'])) ? $colInfo['col'] : 0; |
||
26 | $colLast = (isset($colInfo['col2'])) ? $colInfo['col2'] : 0; |
||
27 | |||
28 | $format = $colInfo['format']; |
||
29 | $grbit = $colInfo['hidden']; |
||
30 | $level = $colInfo['level']; |
||
31 | |||
32 | $coldx = $colInfo['width']; |
||
33 | $coldx += 0.72; // Fudge. Excel subtracts 0.72 !? |
||
34 | $coldx *= 256; // Convert to units of 1/256 of a char |
||
35 | |||
36 | $reserved = 0x00; // Reserved |
||
37 | |||
38 | $level = max(0, min($level, 7)); |
||
39 | $grbit |= $level << 8; |
||
40 | |||
41 | $data = pack( |
||
42 | "vvvvvC", |
||
43 | $colFirst, |
||
44 | $colLast, |
||
45 | $coldx, |
||
46 | $this->xf($format), |
||
47 | $grbit, |
||
48 | $reserved |
||
49 | ); |
||
50 | |||
51 | return $this->getFullRecord($data); |
||
52 | } |
||
53 | } |
||
54 |