MDL-32188 question CBM: fix typos in comments.

Also one method name.
This commit is contained in:
Tim Hunt 2013-09-30 18:35:09 +01:00
parent 02d3e4d557
commit c4efeb2b4b
8 changed files with 17 additions and 17 deletions

View File

@ -628,7 +628,7 @@ abstract class question_behaviour_with_save extends question_behaviour {
/**
* This helper class contains the constants and methods required for
* manipulating scores for certainly based marking.
* manipulating scores for certainty based marking.
*
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@ -665,10 +665,10 @@ abstract class question_cbm {
}
/**
* Given a fraction, and a certainly, compute the adjusted fraction.
* Given a fraction, and a certainty, compute the adjusted fraction.
* @param number $fraction the raw fraction for this question.
* @param int $certainty one of the certainly level constants.
* @return number the adjusted fraction taking the certainly into account.
* @param int $certainty one of the certainty level constants.
* @return number the adjusted fraction taking the certainty into account.
*/
public static function adjust_fraction($fraction, $certainty) {
return self::$offset[$certainty] + self::$factor[$certainty] * $fraction;
@ -676,7 +676,7 @@ abstract class question_cbm {
/**
* @param int $certainty one of the LOW/MED/HIGH constants.
* @return string a textual desciption of this certainly.
* @return string a textual description of this certainty.
*/
public static function get_string($certainty) {
return get_string('certainty' . $certainty, 'qbehaviour_deferredcbm');

View File

@ -16,7 +16,7 @@
/**
* Question behaviour that is like the deferred feedback model, but with
* certainly based marking. That is, in addition to the other controls, there are
* certainty based marking. That is, in addition to the other controls, there are
* where the student can indicate how certain they are that their answer is right.
*
* @package qbehaviour

View File

@ -36,7 +36,7 @@ defined('MOODLE_INTERNAL') || die();
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class qbehaviour_deferredcbm_renderer extends qbehaviour_renderer {
protected function certainly_choices($controlname, $selected, $readonly) {
protected function certainty_choices($controlname, $selected, $readonly) {
$attributes = array(
'type' => 'radio',
'name' => $controlname,
@ -64,7 +64,7 @@ class qbehaviour_deferredcbm_renderer extends qbehaviour_renderer {
public function controls(question_attempt $qa, question_display_options $options) {
return html_writer::tag('div', get_string('howcertainareyou', 'qbehaviour_deferredcbm',
$this->certainly_choices($qa->get_behaviour_field_name('certainty'),
$this->certainty_choices($qa->get_behaviour_field_name('certainty'),
$qa->get_last_behaviour_var('certainty'), $options->readonly)),
array('class' => 'certaintychoices'));
}

View File

@ -34,10 +34,10 @@ require_once(dirname(__FILE__) . '/../immediatefeedback/behaviour.php');
* Question behaviour for immediate feedback with CBM.
*
* Each question has a submit button next to it along with some radio buttons
* to input a certainly, that is, how sure they are that they are right.
* to input a certainty, that is, how sure they are that they are right.
* The student can submit their answer at any time for immediate feedback.
* Once the qustion is submitted, it is not possible for the student to change
* their answer any more. The student's degree of certainly affects their score.
* their answer any more. The student's degree of certainty affects their score.
*
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

View File

@ -33,7 +33,7 @@ defined('MOODLE_INTERNAL') || die();
* is not available.
*
* Imagine, for example, that a quiz attempt has been restored from another
* Moodle site with more behaviours installed, or an behaviour
* Moodle site with more behaviours installed, or a behaviour
* that used to be available in this site has been uninstalled. Obviously all we
* can do is have some code to prevent fatal errors.
*

View File

@ -189,7 +189,7 @@ abstract class question_engine {
}
/**
* Create an behaviour for a particular type. If that type cannot be
* Create a behaviour for a particular type. If that type cannot be
* found, return an instance of qbehaviour_missing.
*
* Normally you should use {@link make_archetypal_behaviour()}, or
@ -239,7 +239,7 @@ abstract class question_engine {
}
/**
* Create an behaviour for a particular type. If that type cannot be
* Create a behaviour for a particular type. If that type cannot be
* found, return an instance of qbehaviour_missing.
*
* Normally you should use {@link make_archetypal_behaviour()}, or
@ -394,7 +394,7 @@ abstract class question_engine {
}
/**
* Get the translated name of an behaviour, for display in the UI.
* Get the translated name of a behaviour, for display in the UI.
* @param string $behaviour the internal name of the model.
* @return string name from the current language pack.
*/

View File

@ -295,7 +295,7 @@ class question_attempt_step {
}
/**
* @param string $name the name of an behaviour variable to look for in the submitted data.
* @param string $name the name of a behaviour variable to look for in the submitted data.
* @return bool whether a variable with this name exists in the question type data.
*/
public function has_behaviour_var($name) {
@ -303,7 +303,7 @@ class question_attempt_step {
}
/**
* @param string $name the name of an behaviour variable to look for in the submitted data.
* @param string $name the name of a behaviour variable to look for in the submitted data.
* @return string the requested variable, or null if the variable is not set.
*/
public function get_behaviour_var($name) {

View File

@ -154,7 +154,7 @@ abstract class question_definition {
* one asked for. For example, you migth want to return a
* qbehaviour_interactive_adapted_for_myqtype.
*
* @param question_attempt $qa the attempt we are creating an behaviour for.
* @param question_attempt $qa the attempt we are creating a behaviour for.
* @param string $preferredbehaviour the requested type of behaviour.
* @return question_behaviour the new behaviour object.
*/