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,7 +13,8 @@ | ||
| 13 | 'auto_detect_first_line' => true, | 13 | 'auto_detect_first_line' => true, |
| 14 | 'converter_conf' => [ | 14 | 'converter_conf' => [ |
| 15 | 'class' => ' common\components\parsers\CustomConverter', | 15 | 'class' => ' common\components\parsers\CustomConverter', |
| 16 | - 'configuration' => ["string" => 'DESCR', | 16 | + 'configuration' => ["encode" => 'DESCR', |
| 17 | + "string" => 'DESCR', | ||
| 17 | "float" => 'PRICE', | 18 | "float" => 'PRICE', |
| 18 | "brand" => 'BRAND', | 19 | "brand" => 'BRAND', |
| 19 | "integer" => ['BOX','ADD_BOX'], | 20 | "integer" => ['BOX','ADD_BOX'], |
| @@ -72,7 +73,9 @@ | @@ -72,7 +73,9 @@ | ||
| 72 | 'path_for_extract_files' => \Yii::getAlias('@temp_upload') . '/', | 73 | 'path_for_extract_files' => \Yii::getAlias('@temp_upload') . '/', |
| 73 | 'converter_conf' => [ | 74 | 'converter_conf' => [ |
| 74 | 'class' => 'common\components\parsers\CustomConverter', | 75 | 'class' => 'common\components\parsers\CustomConverter', |
| 75 | - 'configuration' => ["encode" => 'DESCR'],] | 76 | + 'hasHeaderRow' => true, |
| 77 | + 'configuration' => ["string" => []], | ||
| 78 | + ] | ||
| 76 | ], | 79 | ], |
| 77 | ] | 80 | ] |
| 78 | ]; | 81 | ]; |