Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5055

Calculated grading adjustments

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: 2.6.3
    • Component/s: Set: Dataform
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE

      Description

      Adding support for calculated grade by fields.
      Patterns of the form:

      ##VALUE:FIELD-PATTERN##

      Supporting fields must implement interface \mod_dataform\interfaces\grading and the method get_user_values.
      A valid pattern returns comma delimited list of values from the referred field.
      In the formula, the pattern should be aggregated:

      SUM(##VALUE:FIELD-PATTERN##)

      Example 1
      -------------
      With an Entry state field called 'State' the following pattern will return the sum of states of the user's entries.

      SUM(##:state##)

      Example 2
      -------------
      With an Entry state field called 'State' the following pattern will return the number of user's entries which are in the second state (after the initial).

      SUM(##2:state##)/2

        Attachments

          Activity

            People

            • Assignee:
              itamart Itamar Tzadok
              Reporter:
              itamart Itamar Tzadok
              Tester:
              Itamar Tzadok
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14