There is a function CIBlockPropertyEnum :: Update (); She has no events on her own. Is it possible with the use of D7 to somehow catch the moment when the property value changes?

  • specify what exactly you are doing. give your code in which you call CIBlockPropertyEnum::Update() - Nikolaj Sarry
  • @NikolajSarry I do not call anything. My question is exhaustive, I want that if any user / Bitrix itself uses the call CIBlockPropertyEnum::Update(); I can track this change. - Oleksandr
  • And for what? Just? The answer is about CIBlockPropertyEnum::Update() in the first sentence of my answer. There are currently no APIs to track this method. - Nikolaj Sarry

1 answer 1

Specifically, for CIBlockPropertyEnum::Update() in the API, there are currently no events.

But there are update events for the OnAfterIBlockPropertyUpdate and OnBeforeIBlockPropertyUpdate information OnAfterIBlockPropertyUpdate OnBeforeIBlockPropertyUpdate .

On methods that modify properties through the API, there is only OnIBlockElementSetPropertyValues and OnIBlockElementSetPropertyValuesEx

Well, there are events on update sites for OnIBlockElementUpdate , OnBeforeIBlockElementUpdate , OnAfterIBlockElementUpdate .

  • Why do I need a list of these functions. My question is specifically about updating the value of a property of type list. - Oleksandr
  • one
    @Oleksandr write the question so that you get what you need in the answer. About event tracking via CIBlockPropertyEnum::Update() I responded with the first sentence. At the moment for him in the API there are no events. But the moment of the property change can be caught by the event of the element change. Or change the values ​​via SetPropertyValuesEx then you can track the update of the property by the event. - Nikolaj Sarry