Save
in package
Table of Contents
Properties
- $aSaveErrors : array<string|int, string>
- $saveData : null|array<string|int, string>
Methods
- getSaveFormDatas() : mixed
- saveSurvey() : mixed
- Clone of savesubmit() but returns datas for twig
- set_answer_time() : void
- This functions saves the answer time for question/group and whole survey.
- launchSaveFormEvent() : void
- Launch the event SaveForm
Properties
$aSaveErrors
public
array<string|int, string>
$aSaveErrors
= array()
:list of errors when try saving
$saveData
public
null|array<string|int, string>
$saveData
= \null
: data when save try to submit save form
Methods
getSaveFormDatas()
public
getSaveFormDatas(mixed $iSurveyId) : mixed
Parameters
- $iSurveyId : mixed
saveSurvey()
Clone of savesubmit() but returns datas for twig
public
saveSurvey() : mixed
set_answer_time()
This functions saves the answer time for question/group and whole survey.
public
set_answer_time() : void
[ It compares current time with the time in $_POST['start_time'] ] The times are saved in table: {prefix}{surveytable}_timings
launchSaveFormEvent()
Launch the event SaveForm
private
launchSaveFormEvent(mixed $surveyid[, $state = 'show' ]) : void