1 | <?php |
||
7 | class Xf extends AbstractRecord |
||
8 | { |
||
9 | const NAME = 'XF'; |
||
10 | const ID = 0x00E0; |
||
11 | |||
12 | /** |
||
13 | * Generate an Excel BIFF XF record. |
||
14 | * |
||
15 | * @param XlsFormat $format |
||
16 | * @param string $style The type of the XF record ('style' or 'cell'). |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | public function getData($format, $style) |
||
45 | |||
46 | /** |
||
47 | * @param XlsFormat $format |
||
48 | * |
||
49 | * @return int |
||
50 | */ |
||
51 | protected function getAlignment($format) |
||
62 | |||
63 | /** |
||
64 | * @param XlsFormat $format |
||
65 | * |
||
66 | * @return int |
||
67 | */ |
||
68 | protected function getUsedAttr($format) |
||
81 | |||
82 | /** |
||
83 | * @param XlsFormat $format |
||
84 | * |
||
85 | * @return int |
||
86 | */ |
||
87 | protected function getBorder1($format) |
||
102 | |||
103 | /** |
||
104 | * @param XlsFormat $format |
||
105 | * |
||
106 | * @return int |
||
107 | */ |
||
108 | protected function getBorder2($format) |
||
118 | |||
119 | /** |
||
120 | * @param string $style |
||
121 | * @param XlsFormat $format |
||
122 | * |
||
123 | * @return int |
||
124 | */ |
||
125 | protected function getStyle($style, $format) |
||
137 | |||
138 | /** |
||
139 | * Zero border colors if no borders set |
||
140 | * @param XlsFormat $format |
||
141 | */ |
||
142 | protected function checkBorders($format) |
||
148 | |||
149 | /** |
||
150 | * @param XlsFormat $format |
||
151 | * |
||
152 | * @return array |
||
153 | */ |
||
154 | protected function getFlags($format) |
||
170 | } |
||
171 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: