Actions

Difference between revisions of "Plugin events"

From LimeSurvey Manual

m
Line 23: Line 23:
 
*[[beforeLogin]]
 
*[[beforeLogin]]
 
*[[beforeLogout]]
 
*[[beforeLogout]]
*[[beforeQuestionRender]]{{NewIn|v=2.05|b=140922}}
 
 
*[[beforeParticipantSave]]
 
*[[beforeParticipantSave]]
 
*[[beforeParticipantDelete]]
 
*[[beforeParticipantDelete]]
 
*[[beforePermissionSetSave]]
 
*[[beforePermissionSetSave]]
 +
*[[beforePluginManagerMenuRender]]{{NewIn|v=4.0.0}}
 +
*[[beforeQuestionRender]]{{NewIn|v=2.05|b=140922}}
 
*[[beforeRegister]]{{NewIn|v=2.06}}
 
*[[beforeRegister]]{{NewIn|v=2.06}}
 
*[[beforeRegisterForm]]{{NewIn|v=2.06}}
 
*[[beforeRegisterForm]]{{NewIn|v=2.06}}

Revision as of 13:25, 10 October 2018

At version 2.50 build 160425 the following events are available for plugins to subscribe to:

NB: Version 2.60.0 is not the save as version 2.6, which is the new number for version 2.06. 2.60.0 comes after 2.59.1.

Model Events

All models (Survey, Question, etc.) support a series of before & after events.

These include model-specific events (example for Survey model):

As well as generic events independent of the model's name:

In all of the above events, the associated model object is available as part of event data:

$model = $this->event->get('model');