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?
1 answer
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 viaSetPropertyValuesExthen you can track the update of the property by the event. - Nikolaj Sarry
|
CIBlockPropertyEnum::Update()- Nikolaj SarryCIBlockPropertyEnum::Update();I can track this change. - OleksandrCIBlockPropertyEnum::Update()in the first sentence of my answer. There are currently no APIs to track this method. - Nikolaj Sarry