Beispiel #1
0
         $killed_lines = intval($_SESSION[$CUR_LOAD_SESS_ID]["killed_lines"]);
     }
     if (is_set($_SESSION[$CUR_LOAD_SESS_ID], "arIBlockProperty")) {
         $arIBlockProperty = $_SESSION[$CUR_LOAD_SESS_ID]["arIBlockProperty"];
     }
     if (is_set($_SESSION[$CUR_LOAD_SESS_ID], "bThereIsGroups")) {
         $bThereIsGroups = $_SESSION[$CUR_LOAD_SESS_ID]["bThereIsGroups"];
     }
 }
 // Prepare arrays for elements load
 $bWorkFlow = CModule::IncludeModule('workflow');
 foreach ($arIBlockAvailProdFields as $key => $arField) {
     if ($arField["field"] === "XML_ID") {
         for ($i = 0; $i < $NUM_FIELDS; $i++) {
             if ($key === $GLOBALS["field_" . $i]) {
                 $csvFile->AddPrimaryKey($key, $i);
             }
         }
     } elseif ($arField["field"] === "NAME") {
         for ($i = 0; $i < $NUM_FIELDS; $i++) {
             if ($key === $GLOBALS["field_" . $i]) {
                 $csvFile->AddPrimaryKey($key, $i);
             }
         }
     }
 }
 $csvFile->tmpid = $tmpid;
 $csvFile->IBLOCK_ID = $IBLOCK_ID;
 $csvFile->NUM_FIELDS = $NUM_FIELDS;
 $csvFile->SetGroupFields($arIBlockAvailGroupFields);
 $arIBlockFileProperty = array();