From LimeSurvey Manual
Before a single database model was saved using model->save(). See CActiveRecord::onBeforeSave.
- model : The current model as an ActiveRecord
- surveyId : related survey id if exist
- iSurveyID : related survey id if exist
- dynamicId : related dynamic id if exist (for Token and Response)
You can update current model before it was saved.
Not all LimeSurvey action use ActiveRecord to save a model.