Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46761

Correct the description of function get_total_mark()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Questions
    • Labels:

      Description

      In moodle/question/engine/questionusage.php, correct the description of get_total_mark() as follows:

      Replace
      * Get the current mark awarded for the attempt at a question.
      * @param int $slot the number used to identify this question within this usage.
      * @return number|null The current mark for this question, or null if one has
      * not been assigned yet.

      with
      * Get the total marks awarded for all questions in an attempt, to set attempt sumgrades
      * @return number|null Grade for the attempt, relative to a max = quiz->sumgrades,
      * or null if any Q has not yet had a mark assigned.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14