• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/orderimport.php
  • Класс: BitrixSaleExchangeEntityOrderImport
  • Вызов: OrderImport::fillProperty
private function fillProperty(Order $order, $fieldsOrderProperty)
    {
        $result = new SaleResult();

        /** @var SalePropertyValueCollection $propCollection */
        $propCollection = $order->getPropertyCollection();

        if (!empty($fieldsOrderProperty) && is_array($fieldsOrderProperty))
        {
            $fields['PROPERTIES'] = $fieldsOrderProperty;

            /** @var SaleResult $r */
            $r = $propCollection->setValuesFromPost($fields, $_FILES);
            if (!$r->isSuccess())
            {
                $result->addErrors($r->getErrors());
                return $result;
            }
        }
        return $result;
    }