Copyright © 2010-2012 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
collect_answers/3 | Collect all answers, report any missing answers. |
do_submit/4 | Collect all answers per question, save to the database. |
event/2 | |
get_page/3 | |
go_button_target/4 | |
manage_schema/2 | Schema for mod_survey lives in separate module. |
module_name/1 | |
observe_admin_edit_blocks/3 | Append the possible blocks for a survey's edit page. |
observe_admin_rscform/3 | Redo the page jumps into correct page break blocks. |
observe_export_resource_data/2 | Fetch all ids making up the export, handles collections and search queries. |
observe_export_resource_filename/2 | Fetch the filename for the export. |
observe_export_resource_header/2 | Fetch the header for the survey download. |
observe_rsc_merge/2 | Rename the answers of the loser to the winner. |
observe_survey_is_submit/2 | Check if the given block is a survey question with submit button. |
render_next_page/7 | Fetch the next page from the survey, update the page view. |
collect_answers(Qs::list(), Answers::proplist(), Context) -> {AnswerList, MissingNames}
Collect all answers, report any missing answers.
do_submit(SurveyId, Questions, Answers, Context) -> any()
Collect all answers per question, save to the database.
event(Postback, Context) -> any()
get_page(Id, Nr, Context) -> any()
go_button_target(Submitter, Questions, Answers, Context) -> any()
manage_schema(What, Context) -> any()
Schema for mod_survey lives in separate module
module_name(A) -> any()
observe_admin_edit_blocks(Admin_edit_blocks, Menu, Context) -> any()
Append the possible blocks for a survey's edit page.
observe_admin_rscform(Admin_rscform, Post, Context) -> any()
Redo the page jumps into correct page break blocks
observe_export_resource_data(Export_resource_data, Context) -> any()
Fetch all ids making up the export, handles collections and search queries.
observe_export_resource_filename(Export_resource_filename, Context) -> any()
Fetch the filename for the export
observe_export_resource_header(Export_resource_header, Context) -> any()
Fetch the header for the survey download
observe_rsc_merge(Rsc_merge, Context) -> any()
Rename the answers of the loser to the winner
observe_survey_is_submit(Survey_is_submit, Context) -> any()
Check if the given block is a survey question with submit button
render_next_page(Id::integer(), PageNr::integer(), Direction::exact | forward, Answers::list(), History::list(), Editing::term() | undefined, Context::z:context()) -> #render{} | z:context()
Fetch the next page from the survey, update the page view
Generated by EDoc