int CIBlockElement::Add( array arFields, bool bWorkFlow = false, bool bUpdateSearch = true, bool bResizePictures = false, bool bOffEvent = false ); CIBlockElement::Update( int ID, array arFields, bool bWorkFlow = false, bool bUpdateSearch = true, bool bResizePictures = false, bool bCheckDiskQuota = true, bool bOffEvent = false ); bool CIBlockElement::Delete( int ID, bool bOffEvent = false ); |
function OnAfterIBlockElementUpdate(&$arFields){ if(!isset($arFields['STOP_API'])){ $arSomeOtherFields=array(....); $arSomeOtherFields['STOP_API']='Y'; $element = new CIBlockElement; $element->Update($ID,$arSomeOtherFields); } } |
Это сломает функционал ядра |
function OnAfterIBlockElementUpdate(&$arFields){ if(!isset($arFields['STOP_API'])){ $arSomeOtherFields=array(....); $arSomeOtherFields['STOP_API']='Y'; $element = new CIBlockElement; $element->Update($ID,$arSomeOtherFields); } } |