Added timelimit option to Survey
This commit is contained in:
parent
7b771a53ad
commit
5782fe1e15
3 changed files with 18 additions and 2 deletions
|
|
@ -331,11 +331,11 @@ sub migrateSurvey{
|
||||||
|
|
||||||
#move over survey
|
#move over survey
|
||||||
$session->db->write("insert into Survey
|
$session->db->write("insert into Survey
|
||||||
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
|
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
|
||||||
[
|
[
|
||||||
$$survey{groupToTakeSurvey},$$survey{groupToViewReports},'PBtmpl0000000000000064','PBtmpl0000000000000063',$$survey{maxResponsesPerUser},
|
$$survey{groupToTakeSurvey},$$survey{groupToViewReports},'PBtmpl0000000000000064','PBtmpl0000000000000063',$$survey{maxResponsesPerUser},
|
||||||
$$survey{gradebookTemplateId},$$survey{assetId},'PBtmpl0000000000000061',$$survey{revisionDate},'GRUNFctldUgop-qRLuo_DA','AjhlNO3wZvN5k4i4qioWcg',
|
$$survey{gradebookTemplateId},$$survey{assetId},'PBtmpl0000000000000061',$$survey{revisionDate},'GRUNFctldUgop-qRLuo_DA','AjhlNO3wZvN5k4i4qioWcg',
|
||||||
'wAc4azJViVTpo-2NYOXWvg', '1oBRscNIcFOI-pETrCOspA','d8jMMMRddSQ7twP4l1ZSIw','CxMpE_UPauZA3p8jdrOABw','','{}'
|
'wAc4azJViVTpo-2NYOXWvg', '1oBRscNIcFOI-pETrCOspA','d8jMMMRddSQ7twP4l1ZSIw','CxMpE_UPauZA3p8jdrOABw','','{}',0
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -459,6 +459,7 @@ CREATE TABLE `Survey` (
|
||||||
`surveyQuestionsId` char(22) default NULL,
|
`surveyQuestionsId` char(22) default NULL,
|
||||||
`exitURL` varchar(512) default NULL,
|
`exitURL` varchar(512) default NULL,
|
||||||
`surveyJSON` longblob,
|
`surveyJSON` longblob,
|
||||||
|
`timeLimit` mediumint(8) unsigned NOT NULL,
|
||||||
PRIMARY KEY (`assetId`,`revisionDate`)
|
PRIMARY KEY (`assetId`,`revisionDate`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
");
|
");
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,12 @@ sub definition {
|
||||||
hoverHelp => "A Survey System",
|
hoverHelp => "A Survey System",
|
||||||
label => "Template ID"
|
label => "Template ID"
|
||||||
},
|
},
|
||||||
|
timeLimit => { fieldType => 'integer',
|
||||||
|
defaultValue => 0,
|
||||||
|
tab => 'properties',
|
||||||
|
hoverHelp => $i18n->get('timelimit hoverHelp'),
|
||||||
|
label => $i18n->get('timelimit')
|
||||||
|
},
|
||||||
groupToEditSurvey => {
|
groupToEditSurvey => {
|
||||||
fieldType => 'group',
|
fieldType => 'group',
|
||||||
defaultValue => 4,
|
defaultValue => 4,
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,15 @@ our $I18N = {
|
||||||
message => q|Checked|,
|
message => q|Checked|,
|
||||||
lastUpdated => 1224686319
|
lastUpdated => 1224686319
|
||||||
},
|
},
|
||||||
|
'timelimit' => {
|
||||||
|
message => q|Time Limit:|,
|
||||||
|
lastUpdated => 1224686319
|
||||||
|
},
|
||||||
|
'timelimit hoverHelp' => {
|
||||||
|
message => q|How many minutes the user has to finish the server from the moment they start. 0 means unlimited time.|,
|
||||||
|
lastUpdated => 1224686319
|
||||||
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue