projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ec170
)
ExcelToJson.php
author
Edward
<edward@roojs.com>
Mon, 18 Mar 2013 03:35:34 +0000
(11:35 +0800)
committer
Edward
<edward@roojs.com>
Mon, 18 Mar 2013 03:35:34 +0000
(11:35 +0800)
ExcelToJson.php
patch
|
blob
|
history
diff --git
a/ExcelToJson.php
b/ExcelToJson.php
index
2cbe21a
..
dee2f12
100644
(file)
--- a/
ExcelToJson.php
+++ b/
ExcelToJson.php
@@
-47,8
+47,9
@@
class Pman_Core_ExcelToJson extends Pman_Roo
);
$cols = false;
- $rows = array();
$header = false;
+ $rows = array();
+ $ret = array();
while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
if(!array_filter($n)){
@@
-99,7
+100,7
@@
class Pman_Core_ExcelToJson extends Pman_Roo
if(!$itemsite->get('join_itemsite_item_id_item_id.item_number', $r['ITEM CODE'])){
$this->jerr("error occur on getting item with reference " . $r['ITEM CODE']);
}
- print_r($itemsite
);exit
;
+ print_r($itemsite
->toArray())
;
}