@@ -35,76 +35,87 @@ function xmldb_questionnaire_install() {
35
35
$ questiontype ->type = 'Yes/No ' ;
36
36
$ questiontype ->has_choices = 'n ' ;
37
37
$ questiontype ->response_table = 'response_bool ' ;
38
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\yesno ' ;
38
39
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
39
40
40
41
$ questiontype = new stdClass ();
41
42
$ questiontype ->typeid = 2 ;
42
43
$ questiontype ->type = 'Text Box ' ;
43
44
$ questiontype ->has_choices = 'n ' ;
44
45
$ questiontype ->response_table = 'response_text ' ;
46
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\text ' ;
45
47
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
46
48
47
49
$ questiontype = new stdClass ();
48
50
$ questiontype ->typeid = 3 ;
49
51
$ questiontype ->type = 'Essay Box ' ;
50
52
$ questiontype ->has_choices = 'n ' ;
51
53
$ questiontype ->response_table = 'response_text ' ;
54
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\essay ' ;
52
55
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
53
56
54
57
$ questiontype = new stdClass ();
55
58
$ questiontype ->typeid = 4 ;
56
59
$ questiontype ->type = 'Radio Buttons ' ;
57
60
$ questiontype ->has_choices = 'y ' ;
58
61
$ questiontype ->response_table = 'resp_single ' ;
62
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\radio ' ;
59
63
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
60
64
61
65
$ questiontype = new stdClass ();
62
66
$ questiontype ->typeid = 5 ;
63
67
$ questiontype ->type = 'Check Boxes ' ;
64
68
$ questiontype ->has_choices = 'y ' ;
65
69
$ questiontype ->response_table = 'resp_multiple ' ;
70
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\check ' ;
66
71
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
67
72
68
73
$ questiontype = new stdClass ();
69
74
$ questiontype ->typeid = 6 ;
70
75
$ questiontype ->type = 'Dropdown Box ' ;
71
76
$ questiontype ->has_choices = 'y ' ;
72
77
$ questiontype ->response_table = 'resp_single ' ;
78
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\drop ' ;
73
79
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
74
80
75
81
$ questiontype = new stdClass ();
76
82
$ questiontype ->typeid = 8 ;
77
83
$ questiontype ->type = 'Rate (scale 1..5) ' ;
78
84
$ questiontype ->has_choices = 'y ' ;
79
85
$ questiontype ->response_table = 'response_rank ' ;
86
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\rate ' ;
80
87
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
81
88
82
89
$ questiontype = new stdClass ();
83
90
$ questiontype ->typeid = 9 ;
84
91
$ questiontype ->type = 'Date ' ;
85
92
$ questiontype ->has_choices = 'n ' ;
86
93
$ questiontype ->response_table = 'response_date ' ;
94
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\date ' ;
87
95
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
88
96
89
97
$ questiontype = new stdClass ();
90
98
$ questiontype ->typeid = 10 ;
91
99
$ questiontype ->type = 'Numeric ' ;
92
100
$ questiontype ->has_choices = 'n ' ;
93
101
$ questiontype ->response_table = 'response_text ' ;
102
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\numerical ' ;
94
103
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
95
104
96
105
$ questiontype = new stdClass ();
97
106
$ questiontype ->typeid = 99 ;
98
107
$ questiontype ->type = 'Page Break ' ;
99
108
$ questiontype ->has_choices = 'n ' ;
100
109
$ questiontype ->response_table = '' ;
110
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\pagebreak ' ;
101
111
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
102
112
103
113
$ questiontype = new stdClass ();
104
114
$ questiontype ->typeid = 100 ;
105
115
$ questiontype ->type = 'Section Text ' ;
106
116
$ questiontype ->has_choices = 'n ' ;
107
117
$ questiontype ->response_table = '' ;
118
+ $ questiontype ->fqcn = '\\mod_questionnaire \\question \\sectiontext ' ;
108
119
$ id = $ DB ->insert_record ('questionnaire_question_type ' , $ questiontype );
109
120
110
121
}
0 commit comments