event_handler( array &arFields );Fired after an attempt to modify the information block element property by a call to CIBlockProperty::Update.
Parameter | Description |
---|---|
arFields |
An array of fields of the
updated information block element property. The additional entry "RESULT" contains the value returned by the CIBlockProperty::Update method. If an error occurred during the method execution, the entry "RESULT_MESSAGE" contains the error description. |
Note
The parameter(s) of this handler are references to
the original variables. Hence, altering their values from within the handler
causes changing values of the source variables passed to the handler.
<? // file /bitrix/php_interface/init.php // register handler AddEventHandler("iblock", "OnAfterIBlockPropertyUpdate", Array("MyClass", "OnAfterIBlockPropertyUpdateHandler")); class MyClass { // create handler "OnAfterIBlockPropertyUpdate" function OnAfterIBlockPropertyUpdateHandler(&$arFields) { if($arFields["RESULT"]) AddMessage2Log("Redord ID=". $arFields["ID"]." is modified."); else AddMessage2Log("Error updating record ". $arFields["ID"]. " (".$arFields["RESULT_MESSAGE"].")."); } } ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |