projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c12819
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Wed, 6 Jun 2012 12:55:05 +0000
(20:55 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 6 Jun 2012 12:55:05 +0000
(20:55 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
a236411
..
3421dc5
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-103,10
+103,13
@@
class Pman_Core_SimpleExcel extends Pman
$hasRender = false;
// DB_DataObject::debugLevel(1);
foreach($data as $r=>$cl) {
+ if (is_object($cl)) {
+ $cl = $cl->toArray();
+ }
if (isset($cfg['row_height'])) {
$worksheet->setRow($start_row +$r, $cfg['row_height']);
-
}
+ }
foreach($cfg['cols'] as $c=>$col_cfg) {
$v = isset($cl[$col_cfg['dataIndex']]) ? $cl[$col_cfg['dataIndex']] : '';