Commit 6ac312c998282610ee388c4e4e8404c1c8a4dcd6
1 parent
ec6bf991
add xlsx parser iterrator
Showing
1 changed file
with
5 additions
and
2 deletions
 
Show diff stats
common/components/parsers/config.php
| ... | ... | @@ -13,7 +13,8 @@ | 
| 13 | 13 | 'auto_detect_first_line' => true, | 
| 14 | 14 | 'converter_conf' => [ | 
| 15 | 15 | 'class' => ' common\components\parsers\CustomConverter', | 
| 16 | - 'configuration' => ["string" => 'DESCR', | |
| 16 | + 'configuration' => ["encode" => 'DESCR', | |
| 17 | + "string" => 'DESCR', | |
| 17 | 18 | "float" => 'PRICE', | 
| 18 | 19 | "brand" => 'BRAND', | 
| 19 | 20 | "integer" => ['BOX','ADD_BOX'], | 
| ... | ... | @@ -72,7 +73,9 @@ | 
| 72 | 73 | 'path_for_extract_files' => \Yii::getAlias('@temp_upload') . '/', | 
| 73 | 74 | 'converter_conf' => [ | 
| 74 | 75 | 'class' => 'common\components\parsers\CustomConverter', | 
| 75 | - 'configuration' => ["encode" => 'DESCR'],] | |
| 76 | + 'hasHeaderRow' => true, | |
| 77 | + 'configuration' => ["string" => []], | |
| 78 | + ] | |
| 76 | 79 | ], | 
| 77 | 80 | ] | 
| 78 | 81 | ]; | ... | ... |