onUserBeforeSave
or onUserAfterSaveGroup
in a Plugin.The Plugin function should be triggered.
No Plugin event is triggered to catch the batch process.
PHP Version 5.6.22-1+donate.sury.org~trusty+1
Web Server Apache/2.4.20 (Ubuntu)
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
I don't know whether there is an efficient way to implement that for large user sets. However, in my use case I need to sync any changes made to the user groups to another application and currently I can't catch up on batch processes in the backend.
Category | ⇒ | Plugins |
Labels |
Added:
?
|
Is this for some reason intended?
I don't think so. I guess it was not implemented as it was not needed till now. The function where the events should be triggered, can be found on that file https://github.com/joomla/joomla-cms/blob/staging/libraries/legacy/model/admin.php#L186. The only thing we have to define here, are the parameters and event names. The implementation should be relatively simple.
Ok, I'd suggest to trigger the existing events onUserBeforeSave
etc., multiple times though.
I would go with batch triggers.
Than the plugin developer has to listen for the batch explicitly. Seems not to be a big deal, if the documentation is clear about that. What API would you propose than? onBatchUserBeforeSave
etc.?
For example the content events do deliver a context which is available in the batch action as well. So I would go with something more generic like onBatchBeforeSave
and onBatchAfterSave
.
Priority | Medium | ⇒ | Low |
Status | New | ⇒ | Needs Review |
Labels |
Added:
?
|
We should have batch events. Added the new feature label, this is something anyone who is interested could work on and open a PR for at any point I feel.
Status | Needs Review | ⇒ | Discussion |
Category | Plugins | ⇒ | Feature Request Plugins |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-19 10:15:26 |
Closed_By | ⇒ | wilsonge |
This is valid for all batch actions like Articles or Contacts as the model batch function doesn't trigger any kind of event.