Where can I find a description of the sequence of called events?
I would like to know if there are any events between boforeControllerAction and afterControllerAction?
Is it possible to interrupt the execution of an event in such a way that the action following it does not execute?
For example, if I catch the beforeControllerAction event, how can I prevent the action from being triggered after this event?
ad 3)
If I use the "die()" function it will work. But I don't think that's good practice in this case. Example:
Code:
publicfunction init(){$this->subscribe('beforeControllerAction');}publicfunction beforeControllerAction(){$isPostRequest=$this->api->getRequest()->getIsPostRequest();if(!$this->ownController&&$isPostRequest&&'admin'==$this->event->get('controller')&&'tokens'==$this->event->get('action')&&'importldap'==$this->event->get('subaction')){//... Here is to run another action from a different controllerdie();}}
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.