Thx
@Earl.
I checked the _newValues already and if I reach my AddOn I've got 16 entries in that array. I run now through all and if I get back to my one, it is still 16, so nothing has been changed in the other sections. Everything which will be done in the 3rd party Addon in the _postSave function is to trigger some events, nothing else.
Let's try to summarize it again, what has been tried and what will be executed.
Base class name | Extension class name |
---|
XFRM\Entity\ResourceUpdate | Me\Two\One\XFRM\Entity\ResourceUpdate |
That has been configured in the Class Extensions. Execution order number has been set to 25.
That is the entry for the 3rd party addon:
Base class name | Extension class name |
---|
XFRM\Entity\ResourceUpdate | Coder\One\XFRM\Entity\ResourceUpdate |
Execution order number has been set to 10.
The function _postSave of the 3rd party addon should be overwritten by my addon.
Now execute the code and set some breakpoints, here the execution order (parent::_postSave() still included):
- MyAddon: _postSave (ResourceUpdate)
- 3rd Party Addon: _postSave (ResourceUpdate)
- XenForo: _postSave (ResourceUpdate)
- 3rd party Addon: _postSave (ResourceItem)
- XenForo: _postSave (ResourceItem)
- 3rd Party Addon: _postSave continue (ResourceUpdate)
- MyAddon: _postSave continue (ResourceUpdate)
If I change the execution order of my Addon to 5 it looks like this:
- 3rd Party Addon: _postSave (ResourceUpdate)
- MyAddon: _postSave (ResourceUpdate)
- XenForo: _postSave (ResourceUpdate)
- 3rd party Addon: _postSave (ResourceItem)
- XenForo: _postSave (ResourceItem)
- MyAddon: _postSave continue (ResourceUpdate)
- 3rd Party Addon: _postSave continue (ResourceUpdate)
If I remove the call parent::_postSave() from my Addon, then only my will be executed nothing else and I guess it is important that the XenForo part should be executed, right ? I would like to have it like that:
- MyAddon: _postSave (ResourceUpdate)
- XenForo: _postSave (ResourceUpdate)
- 3rd party Addon: _postSave (ResourceItem)
- XenForo: _postSave (ResourceItem)
- MyAddon: _postSave continue (ResourceUpdate)
I was not able to get it to work, to create the class extension
Base class name | Extension class name |
---|
Coder\One\XFRM\Entity\ResourceUpdate | Me\Two\One\XFRM\Entity\ResourceUpdate |
and overwrite it. My code will never be executed.
Maybe it is still unclear and the description to bad, please let me know that is the case.
Thanks again to all who already tried to help this is much appreciated.