Подскажите пожалуйста как из кода сделать обновление элемента ИБ.
Получаю элемент, и изменяю его свойство, как
CModule::IncludeModule('iblock');
$arIBlockElement = GetIBlockElement(401);
$arIBlockElement["99"]=$arIBlockElement["99"]+1;
Пытаюсь оюновить запись:
$res = CIBlockElement::Update($arIBlockElement["ID"], $arIBlockElement);
echo "res=".$res;
Получаю ошибку:
Fatal error: Using $this when not in object context in /home2/test/public_html/bitrix/modules/iblock/classes/mysql/ iblockelement.php on line 997
Получаю элемент, и изменяю его свойство, как
CModule::IncludeModule('iblock');
$arIBlockElement = GetIBlockElement(401);
$arIBlockElement["99"]=$arIBlockElement["99"]+1;
Пытаюсь оюновить запись:
$res = CIBlockElement::Update($arIBlockElement["ID"], $arIBlockElement);
echo "res=".$res;
Получаю ошибку:
Fatal error: Using $this when not in object context in /home2/test/public_html/bitrix/modules/iblock/classes/mysql/