@@ 153-164 (lines=12) @@ | ||
150 | array_push($data, ustr2csv($row['value' . $column['column_id']])); |
|
151 | break; |
|
152 | ||
153 | case COLUMN_TYPE_CHECKBOX: |
|
154 | ||
155 | if (is_null($row['value' . $column['column_id']])) |
|
156 | { |
|
157 | array_push($data, NULL); |
|
158 | } |
|
159 | else |
|
160 | { |
|
161 | array_push($data, ustr2csv(bool2sql($row['value' . $column['column_id']]))); |
|
162 | } |
|
163 | ||
164 | break; |
|
165 | ||
166 | case COLUMN_TYPE_RECORD: |
|
167 | ||
@@ 166-177 (lines=12) @@ | ||
163 | ||
164 | break; |
|
165 | ||
166 | case COLUMN_TYPE_RECORD: |
|
167 | ||
168 | if (is_null($row['value' . $column['column_id']])) |
|
169 | { |
|
170 | array_push($data, NULL); |
|
171 | } |
|
172 | else |
|
173 | { |
|
174 | array_push($data, ustr2csv(record_id($row['value' . $column['column_id']]))); |
|
175 | } |
|
176 | ||
177 | break; |
|
178 | ||
179 | case COLUMN_TYPE_DATE: |
|
180 | ||
@@ 179-190 (lines=12) @@ | ||
176 | ||
177 | break; |
|
178 | ||
179 | case COLUMN_TYPE_DATE: |
|
180 | ||
181 | if (is_null($row['value' . $column['column_id']])) |
|
182 | { |
|
183 | array_push($data, NULL); |
|
184 | } |
|
185 | else |
|
186 | { |
|
187 | array_push($data, ustr2csv(get_date($row['value' . $column['column_id']]))); |
|
188 | } |
|
189 | ||
190 | break; |
|
191 | ||
192 | case COLUMN_TYPE_DURATION: |
|
193 | ||
@@ 192-203 (lines=12) @@ | ||
189 | ||
190 | break; |
|
191 | ||
192 | case COLUMN_TYPE_DURATION: |
|
193 | ||
194 | if (is_null($row['value' . $column['column_id']])) |
|
195 | { |
|
196 | array_push($data, NULL); |
|
197 | } |
|
198 | else |
|
199 | { |
|
200 | array_push($data, ustr2csv(time2ustr($row['value' . $column['column_id']]))); |
|
201 | } |
|
202 | ||
203 | break; |
|
204 | ||
205 | default: |
|
206 | debug_write_log(DEBUG_WARNING, 'Unknown column type.'); |