From 6ac312c998282610ee388c4e4e8404c1c8a4dcd6 Mon Sep 17 00:00:00 2001 From: Mihail Date: Fri, 23 Oct 2015 17:48:31 +0300 Subject: [PATCH] add xlsx parser iterrator --- common/components/parsers/config.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/components/parsers/config.php b/common/components/parsers/config.php index cbf1acc..7a250dc 100644 --- a/common/components/parsers/config.php +++ b/common/components/parsers/config.php @@ -13,7 +13,8 @@ 'auto_detect_first_line' => true, 'converter_conf' => [ 'class' => ' common\components\parsers\CustomConverter', - 'configuration' => ["string" => 'DESCR', + 'configuration' => ["encode" => 'DESCR', + "string" => 'DESCR', "float" => 'PRICE', "brand" => 'BRAND', "integer" => ['BOX','ADD_BOX'], @@ -72,7 +73,9 @@ 'path_for_extract_files' => \Yii::getAlias('@temp_upload') . '/', 'converter_conf' => [ 'class' => 'common\components\parsers\CustomConverter', - 'configuration' => ["encode" => 'DESCR'],] + 'hasHeaderRow' => true, + 'configuration' => ["string" => []], + ] ], ] ]; -- libgit2 0.21.4