Actions

BeforeModelSave

From LimeSurvey Manual

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

When

Before a single database model was saved using model->save(). See CActiveRecord::onBeforeSave.

Input

  • 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)

Possible output

None.

You can update current model before it was saved.

Warning

Not all LimeSurvey action use ActiveRecord to save a model.