Actions

BeforeModelDelete: Difference between revisions

From LimeSurvey Manual

No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''When'''
'''When'''


When a single database model was deleted using model->delete(). See [https://www.yiiframework.com/doc/api/1.1/CActiveRecord#onBeforeDelete-detail CActiveRecord::onBeforeDelete].
Before a single database model was deleted using model->delete(). See [https://www.yiiframework.com/doc/api/1.1/CActiveRecord#onBeforeDelete-detail CActiveRecord::onBeforeDelete].


'''Input'''
'''Input'''


*''model'' : The current model as a [https://www.yiiframework.com/doc/api/1.1/CActiveRecord ActiveRecord]
*''model'' : The current model as a [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:14, 15 November 2018

When

Before a single database model was deleted using model->delete(). See CActiveRecord::onBeforeDelete.

Input

  • model : The current model as a 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.