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

Calculated grading adjustments

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.3
    • 2.6.3
    • Set: Dataform
    • None
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE

      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

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

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.