projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3869fe6
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Wed, 29 Jan 2014 04:26:14 +0000
(12:26 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 29 Jan 2014 04:26:14 +0000
(12:26 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
f136bbc
..
6dc0b82
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-129,14
+129,17
@@
class Pman_Core_SimpleExcel extends Pman
//$this->formats = (array)$formats;
- foreach($formats as $k=>$
v
) {
+ foreach($formats as $k=>$
fcfg
) {
if (!isset($this->formats[$f])) {
$this->formats[$f] = & $workbook->addFormat();
}
- if (is_object($
v
)) {
+ if (is_object($
fcfg
)) {
continue; // skip!?!?
}
// not an object..
+ foreach((array)$fcfg as $k=>$v) {
+ $this->formats[$f]->{'set' . $k}($v);
+ }
}
if (isset($cfg['formats'])) {