*
* Creates a new collection/directory on a webdav server
* @param string path
- * @return int status code received as reponse from webdav server (see rfc 2518)
+ * @return int status code received as response from webdav server (see rfc 2518)
*/
function mkcol($path) {
$this->_path = $this->translate_uri($path);
/**
* Private method get_respond
*
- * Reads the reponse from the webdav server.
+ * Reads the response from the webdav server.
*
* Stores data into class vars _header for the header data and
* _body for the rest of the response.
/** @var bool whether to show the question text columns. */
public $showqtext = false;
- /** @var bool whether to show the students' reponse columns. */
+ /** @var bool whether to show the students' response columns. */
public $showresponses = true;
/** @var bool whether to show the correct response columns. */
*/
public function __construct(array $responseclasses = null) {
if (is_array($responseclasses)) {
- foreach ($responseclasses as $responseclassid => $reponseclass) {
- $this->responseclasses[$responseclassid] = new analysis_for_class($reponseclass, $responseclassid);
+ foreach ($responseclasses as $responseclassid => $responseclass) {
+ $this->responseclasses[$responseclassid] = new analysis_for_class($responseclass, $responseclassid);
}
}
}
$formats[$fid] = $strformats[$fid];
}
- list($draftitemid, $reponse) = $this->prepare_response_for_editing(
+ list($draftitemid, $response) = $this->prepare_response_for_editing(
$name, $step, $context);
$editor->use_editor($id, $this->get_editor_options($context),
$output .= html_writer::start_tag('div', array('class' =>
$this->class_name() . ' qtype_essay_response'));
- $output .= html_writer::tag('div', html_writer::tag('textarea', s($reponse),
+ $output .= html_writer::tag('div', html_writer::tag('textarea', s($response),
array('id' => $id, 'name' => $inputname, 'rows' => $lines, 'cols' => 60)));
$output .= html_writer::start_tag('div');
$choiceorder = $question->get_choice_order();
$orderforchoice = array_combine(array_values($choiceorder), array_keys($choiceorder));
- $correctreponse = $question->prepare_simulated_post_data(
+ $correctresponse = $question->prepare_simulated_post_data(
array(0 => 'Mammal', 1 => 'Amphibian', 2 => 'Amphibian', 3 => 'Mammal'));
- $this->assertEquals(array(1, question_state::$gradedright), $question->grade_response($correctreponse));
+ $this->assertEquals(array(1, question_state::$gradedright), $question->grade_response($correctresponse));
$partialresponse = $question->prepare_simulated_post_data(array(0 => 'Mammal'));
$this->assertEquals(array(0.25, question_state::$gradedpartial), $question->grade_response($partialresponse));
If you add the unit kW with a multiplier of 0.001, this will add a correct response of 5.5 kW. This means that the answers 5500W or 5.5kW would be marked correct.
Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW.';
-$string['manynumerical'] = 'Units are optional. If a unit is entered, it is used to convert the reponse to Unit 1 before grading.';
+$string['manynumerical'] = 'Units are optional. If a unit is entered, it is used to convert the response to Unit 1 before grading.';
$string['nominal'] = 'Nominal';
$string['onlynumerical'] = 'Units are not used at all. Only the numerical value is graded.';
$string['oneunitshown'] = 'Unit 1 is automatically displayed beside the answer box.';
* method, and the question_definition class must implement the
* classify_response method.
*
- * @return bool whether this report can analyse all the student reponses
+ * @return bool whether this report can analyse all the student responses
* for things like the quiz statistics report.
*/
public function can_analyse_responses() {
/**
* Generate the specific feedback. This is feedback that varies according to
- * the reponse the student gave.
+ * the response the student gave.
* @param question_attempt $qa the question attempt to display.
* @return string HTML fragment.
*/
/**
* Gereate the specific feedback. This is feedback that varies according to
- * the reponse the student gave.
+ * the response the student gave.
* @param question_attempt $qa the question attempt to display.
* @return string HTML fragment.
*/
// create a response object to place the output from the services.
$response = $this->getResponse();
- // set reponse encoding
+ // set response encoding
$response->setObjectEncoding($objectEncoding);
$responseBody = $request->getAmfBodies();