/dports/www/moodle310/moodle/question/type/calculated/tests/ |
H A D | helper.php | 130 $fromform = new stdClass(); 134 $fromform->defaultmark = 1.0; 137 $fromform->unitrole = '3'; 140 $fromform->unitsleft = '0'; 141 $fromform->nounits = 1; 144 $fromform->synchronize = 0; 148 $fromform->noanswers = 6; 149 $fromform->answer = array(); 152 $fromform->answer[2] = '*'; 162 $fromform->tolerance[2] = 0; [all …]
|
/dports/www/moodle311/moodle/question/type/calculated/tests/ |
H A D | helper.php | 130 $fromform = new stdClass(); 134 $fromform->defaultmark = 1.0; 137 $fromform->unitrole = '3'; 140 $fromform->unitsleft = '0'; 141 $fromform->nounits = 1; 144 $fromform->synchronize = 0; 148 $fromform->noanswers = 6; 149 $fromform->answer = array(); 152 $fromform->answer[2] = '*'; 162 $fromform->tolerance[2] = 0; [all …]
|
/dports/www/moodle39/moodle/question/type/calculated/tests/ |
H A D | helper.php | 130 $fromform = new stdClass(); 134 $fromform->defaultmark = 1.0; 137 $fromform->unitrole = '3'; 140 $fromform->unitsleft = '0'; 141 $fromform->nounits = 1; 144 $fromform->synchronize = 0; 148 $fromform->noanswers = 6; 149 $fromform->answer = array(); 152 $fromform->answer[2] = '*'; 162 $fromform->tolerance[2] = 0; [all …]
|
/dports/www/moodle310/moodle/question/type/ddwtos/tests/ |
H A D | helper.php | 83 $fromform = new stdClass(); 89 $fromform->choices = array( 101 return $fromform; 110 $fromform = new stdClass(); 116 $fromform->choices = array( 128 return $fromform; 138 $fromform = new stdClass(); 144 $fromform->choices = array( 153 return $fromform; 202 $fromform->choices = [ [all …]
|
/dports/www/moodle311/moodle/question/type/ddwtos/tests/ |
H A D | helper.php | 83 $fromform = new stdClass(); 89 $fromform->choices = array( 101 return $fromform; 110 $fromform = new stdClass(); 116 $fromform->choices = array( 128 return $fromform; 138 $fromform = new stdClass(); 144 $fromform->choices = array( 153 return $fromform; 202 $fromform->choices = [ [all …]
|
/dports/www/moodle39/moodle/question/type/ddwtos/tests/ |
H A D | helper.php | 83 $fromform = new stdClass(); 89 $fromform->choices = array( 101 return $fromform; 110 $fromform = new stdClass(); 116 $fromform->choices = array( 128 return $fromform; 138 $fromform = new stdClass(); 144 $fromform->choices = array( 153 return $fromform; 202 $fromform->choices = [ [all …]
|
/dports/www/moodle310/moodle/question/type/essay/tests/ |
H A D | helper.php | 81 $fromform = new stdClass(); 90 $fromform->attachments = 0; 92 $fromform->maxbytes = 0; 97 return $fromform; 133 $fromform = new stdClass(); 142 $fromform->attachments = 3; 144 $fromform->maxbytes = 0; 149 return $fromform; 170 $fromform = new stdClass(); 181 $fromform->maxbytes = 0; [all …]
|
/dports/www/moodle311/moodle/question/type/essay/tests/ |
H A D | helper.php | 83 $fromform = new stdClass(); 92 $fromform->attachments = 0; 94 $fromform->maxbytes = 0; 99 return $fromform; 135 $fromform = new stdClass(); 144 $fromform->attachments = 3; 146 $fromform->maxbytes = 0; 151 return $fromform; 172 $fromform = new stdClass(); 183 $fromform->maxbytes = 0; [all …]
|
/dports/www/moodle39/moodle/question/type/essay/tests/ |
H A D | helper.php | 80 $fromform = new stdClass(); 84 $fromform->defaultmark = 1.0; 89 $fromform->attachments = 0; 95 return $fromform; 131 $fromform = new stdClass(); 135 $fromform->defaultmark = 1.0; 140 $fromform->attachments = 3; 146 return $fromform; 167 $fromform = new stdClass(); 176 $fromform->attachments = 0; [all …]
|
/dports/www/moodle310/moodle/question/type/ddmarker/tests/ |
H A D | helper.php | 137 $fromform = new stdClass(); 158 $fromform->defaultmark = 1; 167 $fromform->drags = array( 172 $fromform->drops = array( 182 $fromform->hint = array( 196 return $fromform; 206 $fromform = new stdClass(); 234 $fromform->drags = array( 239 $fromform->drops = array( 247 $fromform->hint = array( [all …]
|
/dports/www/moodle311/moodle/question/type/ddmarker/tests/ |
H A D | helper.php | 137 $fromform = new stdClass(); 158 $fromform->defaultmark = 1; 167 $fromform->drags = array( 172 $fromform->drops = array( 182 $fromform->hint = array( 196 return $fromform; 206 $fromform = new stdClass(); 234 $fromform->drags = array( 239 $fromform->drops = array( 247 $fromform->hint = array( [all …]
|
/dports/www/moodle39/moodle/question/type/ddmarker/tests/ |
H A D | helper.php | 137 $fromform = new stdClass(); 158 $fromform->defaultmark = 1; 167 $fromform->drags = array( 172 $fromform->drops = array( 182 $fromform->hint = array( 196 return $fromform; 206 $fromform = new stdClass(); 234 $fromform->drags = array( 239 $fromform->drops = array( 247 $fromform->hint = array( [all …]
|
/dports/www/moodle311/moodle/mod/assign/ |
H A D | overrideedit.php | 148 $fromform->{$key} = null; 165 'userid' => empty($fromform->userid) ? null : $fromform->userid, 166 'groupid' => empty($fromform->groupid) ? null : $fromform->groupid); 188 $fromform->id = $override->id; 190 …$cachekey = $groupmode ? "{$fromform->assignid}_g_{$fromform->groupid}" : "{$fromform->assignid}_u… 206 unset($fromform->id); 207 $fromform->id = $DB->insert_record('assign_overrides', $fromform); 209 $fromform->sortorder = 1; 215 $fromform->sortorder = 1; 224 …$cachekey = $groupmode ? "{$fromform->assignid}_g_{$fromform->groupid}" : "{$fromform->assignid}_u… [all …]
|
/dports/www/moodle311/moodle/mod/lesson/ |
H A D | overrideedit.php | 131 $fromform->lessonid = $lesson->id; 136 $fromform->{$key} = null; 144 } else if (!empty($fromform->userid)) { 153 'userid' => empty($fromform->userid) ? null : $fromform->userid, 154 'groupid' => empty($fromform->groupid) ? null : $fromform->groupid); 176 $fromform->id = $override->id; 178 …$cachekey = $groupmode ? "{$fromform->lessonid}_g_{$fromform->groupid}" : "{$fromform->lessonid}_u… 194 unset($fromform->id); 195 $fromform->id = $DB->insert_record('lesson_overrides', $fromform); 196 …$cachekey = $groupmode ? "{$fromform->lessonid}_g_{$fromform->groupid}" : "{$fromform->lessonid}_u… [all …]
|
/dports/www/moodle311/moodle/mod/quiz/ |
H A D | overrideedit.php | 131 $fromform->quiz = $quiz->id; 136 $fromform->{$key} = null; 144 } else if (!empty($fromform->userid)) { 153 'userid' => empty($fromform->userid)? null : $fromform->userid, 154 'groupid' => empty($fromform->groupid)? null : $fromform->groupid); 177 $fromform->id = $override->id; 179 …$cachekey = $groupmode ? "{$fromform->quiz}_g_{$fromform->groupid}" : "{$fromform->quiz}_u_{$fromf… 195 unset($fromform->id); 196 $fromform->id = $DB->insert_record('quiz_overrides', $fromform); 197 …$cachekey = $groupmode ? "{$fromform->quiz}_g_{$fromform->groupid}" : "{$fromform->quiz}_u_{$fromf… [all …]
|
/dports/www/moodle310/moodle/mod/assign/ |
H A D | overrideedit.php | 148 $fromform->{$key} = null; 156 } else if (!empty($fromform->userid)) { 165 'userid' => empty($fromform->userid) ? null : $fromform->userid, 166 'groupid' => empty($fromform->groupid) ? null : $fromform->groupid); 188 $fromform->id = $override->id; 204 unset($fromform->id); 205 $fromform->id = $DB->insert_record('assign_overrides', $fromform); 207 $fromform->sortorder = 1; 213 $fromform->sortorder = 1; 239 if (!empty($fromform->submitbutton)) { [all …]
|
/dports/www/moodle39/moodle/mod/assign/ |
H A D | overrideedit.php | 148 $fromform->{$key} = null; 156 } else if (!empty($fromform->userid)) { 165 'userid' => empty($fromform->userid) ? null : $fromform->userid, 166 'groupid' => empty($fromform->groupid) ? null : $fromform->groupid); 188 $fromform->id = $override->id; 204 unset($fromform->id); 205 $fromform->id = $DB->insert_record('assign_overrides', $fromform); 207 $fromform->sortorder = 1; 213 $fromform->sortorder = 1; 239 if (!empty($fromform->submitbutton)) { [all …]
|
/dports/www/moodle310/moodle/mod/quiz/ |
H A D | overrideedit.php | 129 } else if ($fromform = $mform->get_data()) { variable 131 $fromform->quiz = $quiz->id; 136 $fromform->{$key} = null; 144 } else if (!empty($fromform->userid)) { 153 'userid' => empty($fromform->userid)? null : $fromform->userid, 154 'groupid' => empty($fromform->groupid)? null : $fromform->groupid); 177 $fromform->id = $override->id; 193 unset($fromform->id); 194 $fromform->id = $DB->insert_record('quiz_overrides', $fromform); 219 if (!empty($fromform->submitbutton)) { [all …]
|
/dports/www/moodle310/moodle/mod/lesson/ |
H A D | overrideedit.php | 129 } else if ($fromform = $mform->get_data()) { variable 131 $fromform->lessonid = $lesson->id; 136 $fromform->{$key} = null; 144 } else if (!empty($fromform->userid)) { 153 'userid' => empty($fromform->userid) ? null : $fromform->userid, 154 'groupid' => empty($fromform->groupid) ? null : $fromform->groupid); 176 $fromform->id = $override->id; 192 unset($fromform->id); 193 $fromform->id = $DB->insert_record('lesson_overrides', $fromform); 218 if (!empty($fromform->submitbutton)) { [all …]
|
/dports/www/moodle39/moodle/mod/quiz/ |
H A D | overrideedit.php | 129 } else if ($fromform = $mform->get_data()) { variable 131 $fromform->quiz = $quiz->id; 136 $fromform->{$key} = null; 144 } else if (!empty($fromform->userid)) { 153 'userid' => empty($fromform->userid)? null : $fromform->userid, 154 'groupid' => empty($fromform->groupid)? null : $fromform->groupid); 177 $fromform->id = $override->id; 193 unset($fromform->id); 194 $fromform->id = $DB->insert_record('quiz_overrides', $fromform); 219 if (!empty($fromform->submitbutton)) { [all …]
|
/dports/www/moodle39/moodle/mod/lesson/ |
H A D | overrideedit.php | 129 } else if ($fromform = $mform->get_data()) { variable 131 $fromform->lessonid = $lesson->id; 136 $fromform->{$key} = null; 144 } else if (!empty($fromform->userid)) { 153 'userid' => empty($fromform->userid) ? null : $fromform->userid, 154 'groupid' => empty($fromform->groupid) ? null : $fromform->groupid); 176 $fromform->id = $override->id; 192 unset($fromform->id); 193 $fromform->id = $DB->insert_record('lesson_overrides', $fromform); 218 if (!empty($fromform->submitbutton)) { [all …]
|
/dports/www/moodle311/moodle/question/type/essay/ |
H A D | edit_essay_form.php | 151 public function validation($fromform, $files) { argument 156 if ($fromform['responseformat'] == 'noinline' && !$fromform['attachments']) { 162 if ($fromform['responseformat'] == 'noinline' && !$fromform['attachmentsrequired']) { 168 …if ($fromform['attachments'] != -1 && $fromform['attachments'] < $fromform['attachmentsrequired'] … 172 if ($fromform['responserequired']) { 177 if ($fromform['minwordlimit'] < 0) { 180 if (!$fromform['minwordlimit']) { 191 if (!$fromform['maxwordlimit']) { 195 if (isset($fromform['maxwordenabled']) && isset($fromform['minwordenabled'])) { 196 if ($fromform['maxwordlimit'] < $fromform['minwordlimit'] && [all …]
|
/dports/www/moodle310/moodle/question/type/ddimageortext/tests/ |
H A D | helper.php | 139 $fromform = new stdClass(); 155 $fromform->questiontext = array( 162 $fromform->defaultmark = 1; 163 $fromform->generalfeedback = array( 169 $fromform->shuffleanswers = 0; 170 $fromform->drags = array( 181 $fromform->draglabel = 192 $fromform->drops = array( 205 $fromform->penalty = '0.3333333'; 206 $fromform->hint = array( [all …]
|
/dports/www/moodle311/moodle/question/type/ddimageortext/tests/ |
H A D | helper.php | 139 $fromform = new stdClass(); 155 $fromform->questiontext = array( 162 $fromform->defaultmark = 1; 163 $fromform->generalfeedback = array( 169 $fromform->shuffleanswers = 0; 170 $fromform->drags = array( 181 $fromform->draglabel = 192 $fromform->drops = array( 205 $fromform->penalty = '0.3333333'; 206 $fromform->hint = array( [all …]
|
/dports/www/moodle39/moodle/question/type/ddimageortext/tests/ |
H A D | helper.php | 139 $fromform = new stdClass(); 155 $fromform->questiontext = array( 162 $fromform->defaultmark = 1; 163 $fromform->generalfeedback = array( 169 $fromform->shuffleanswers = 0; 170 $fromform->drags = array( 181 $fromform->draglabel = 192 $fromform->drops = array( 205 $fromform->penalty = '0.3333333'; 206 $fromform->hint = array( [all …]
|