Actions

AfterModelSave: Difference between revisions

From LimeSurvey Manual

m (Add warning)
mNo edit summary
 
Line 6: Line 6:


*''model'' : The current model as an [https://www.yiiframework.com/doc/api/1.1/CActiveRecord ActiveRecord]
*''model'' : The current model as an [https://www.yiiframework.com/doc/api/1.1/CActiveRecord 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'''
'''Possible output'''

Latest revision as of 09:15, 15 November 2018

When

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

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.

Warning

Not all LimeSurvey action use ActiveRecord to save a model.