Pman.Gnumeric.js
[Pman.Core] / ExcelToJson.php
index f9b282d..e981d32 100644 (file)
@@ -12,7 +12,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         return parent::getAuth();
     }
     
-    function post()
+    function post($v)
     {
         $this->transObj = DB_DataObject::Factory('invhist_transfer');
         
@@ -29,8 +29,8 @@ 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');
-        $ret = $this->importCsv($csv);
+         $csv = $fc->convert('text/csv');
+         $ret = $this->importCsv($csv);
         
        
         
@@ -54,7 +54,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         $extra = array();
         
         while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
-            var_dump($n);
+          
             
             if(!strlen(trim(implode('', $n)))){ // blank line;
                 if ($header) {