liquid_feedback_frontend
annotate model/survey_answer.lua @ 1847:bcfa66dd8980
Added version numbers
| author | bsw | 
|---|---|
| date | Thu Feb 03 16:07:59 2022 +0100 (2022-02-03) | 
| parents | 5a8a09119865 | 
| children | 
| rev | line source | 
|---|---|
| bsw@1735 | 1 SurveyAnswer = mondelefant.new_class() | 
| bsw@1735 | 2 SurveyAnswer.table = 'survey_answer' | 
| bsw@1735 | 3 | 
| bsw@1735 | 4 function SurveyAnswer:by_pk(survey_answer_set_ident, member_id) | 
| bsw@1735 | 5 return self:new_selector() | 
| bsw@1735 | 6 :add_where{ "survey_answer_set_ident = ?", survey_answer_set_ident } | 
| bsw@1735 | 7 :add_where{ "survey_question_id = ?", question_id } | 
| bsw@1735 | 8 :optional_object_mode() | 
| bsw@1735 | 9 :exec() | 
| bsw@1735 | 10 end |