Difference between revisions of "Question loadQuestionFromQuestionnaire function"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptMethods_Template|ReturnType=Array of Question|Name=<nowiki>Question_loadQuestionFromQuestionnaire</nowiki>|Parameters= {{CGscriptParameters_Template|Type=int|Name=<n...")
 
(Replaced content with "Question_class")
(Tag: Replaced)
Line 1: Line 1:
{{CGscriptMethods_Template|ReturnType=Array of Question|Name=<nowiki>Question_loadQuestionFromQuestionnaire</nowiki>|Parameters=
+
[[Question_class]]
{{CGscriptParameters_Template|Type=int|Name=<nowiki>questionnaireId</nowiki>|Description=<nowiki>Id of the questionnaire to load from. 0 to use context</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=string|Name=<nowiki>questionLabel</nowiki>|Description=<nowiki>Label of the question to load</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>latestOnly</nowiki>|Description=<nowiki>If user has multiple qas, only include last created</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>completedOnly</nowiki>|Description=<nowiki>Limit by qas that is completed</nowiki>}}
 
|InClass=<nowiki>Question</nowiki>
 
|Description=<nowiki>Load all question from questionnaire</nowiki>}}
 
{{CGscriptMethods_Template|ReturnType=Array of Question|Name=<nowiki>Question_loadQuestionFromQuestionnaire</nowiki>|Parameters=
 
{{CGscriptParameters_Template|Type=int|Name=<nowiki>questionnaireId</nowiki>|Description=<nowiki>Id of the questionnaire to load from. 0 to use context</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=string|Name=<nowiki>questionLabel</nowiki>|Description=<nowiki>Label of the question to load</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>latestOnly</nowiki>|Description=<nowiki>If user has multiple qas, only include last created</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>completedOnly</nowiki>|Description=<nowiki>Limit by qas that is completed</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=int|Name=<nowiki>limitByQuestionnaireId</nowiki>|Description=<nowiki>Limit by users that participated in this questionnaire</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>limitByCompletedQuestionnaireId</nowiki>|Description=<nowiki>Limit by qas that is completed the limitByQuestionnaireId</nowiki>}}
 
|InClass=<nowiki>Question</nowiki>
 
|Description=<nowiki>Load all question from questionnaire</nowiki>}}
 

Revision as of 05:00, 15 May 2024