Plugin events
From LimeSurvey Manual
At version 2.50 build 160425 the following events are available for plugins to subscribe to:
- afterLoginFormSubmit
- afterLogout
- afterFailedLoginAttempt
- afterPluginLoad
- afterQuickMenuLoad
- afterSuccessfulLogin
- afterSurveyComplete
- afterSurveyQuota (New in 2.05 build 141006)
- afterSurveySettingsSave
- beforeActivate
- beforeAdminMenuRender
- beforeControllerAction (New in 2.50 build 160425)
- beforeDeactivate
- beforeHasPermission (New in 2.06 )
- beforeLoadResponse
- beforeLogin
- beforeLogout
- beforeQuestionRender (New in 2.05 build 140922)
- beforeParticipantSave
- beforeParticipantDelete
- beforePermissionSetSave
- beforeRegister (New in 2.06 )
- beforeRegisterForm (New in 2.06 )
- beforeSideMenuRender (New in 2.51.0 )
- beforeSurveyAdminView
- beforeTokenDelete
- beforeTokenSave
- beforeSurveyActivate (New in 2.5 )
- beforeSurveyBarRender (New in 2.51.0 )
- beforeSurveyDeactivate (New in 2.5 )
- beforeSurveyPage (New in 2.05 build 140109)
- beforeSurveySettings
- beforeSurveySettingsSave
- beforeSurveysStartpageRender
- beforeTokenEmail (New in 2.05 build 140404)
- beforeToolsMenuRender
- beforeUserSave
- beforeUserDelete
- createNewUser
- cron (New in 2.05 build 140404)
- listExportOptions
- listExportPlugins
- listQuestionPlugins
- newDirectRequest
- newExport
- newLoginForm
- newQuestionAttributes (New in 2.50 build 160731)
- newSurveySettings
- newUnsecureRequest
- newUserSession
- newUserLogin
- onSurveyDenied (New in 2.5 )
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');