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

Calculated grading adjustments

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.3
    • 2.6.3
    • Set: Dataform
    • None
    • MOODLE_26_STABLE
    • 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

            itamart Itamar Tzadok
            itamart Itamar Tzadok
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/May/14