projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7665f0a
)
ExcelToJson.php
author
Edward
<edward@roojs.com>
Mon, 25 Mar 2013 04:59:39 +0000
(12:59 +0800)
committer
Edward
<edward@roojs.com>
Mon, 25 Mar 2013 04:59:39 +0000
(12:59 +0800)
ExcelToJson.php
patch
|
blob
|
history
diff --git
a/ExcelToJson.php
b/ExcelToJson.php
index
88fa435
..
ffda332
100644
(file)
--- a/
ExcelToJson.php
+++ b/
ExcelToJson.php
@@
-30,12
+30,12
@@
class Pman_Core_ExcelToJson extends Pman_Roo
require_once 'File/Convert.php';
$fc = new File_Convert($img->getStoreName(), $img->mimetype );
$csv = $fc->convert('text/csv');
- $data = $this->importCsv($
this->walkrows($csv)
);
+ $data = $this->importCsv($
csv
);
$this->jdata($data);
}
- function
walkrows
($csv)
+ function
importCsv
($csv)
{
ini_set("auto_detect_line_endings", true);