Moodle

Improve grade object static methods - fetch, fetch_all + other improvements

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

The idea is to make consistent static methods for fetching of grading objects from db. I have discussed it previously with Nicolas and we agreed on new fetch_all() instead of fet_all_using_this() and some other minor improvements.

Activity

Hide
Petr Škoda (skodak) added a comment -

improved static factory methods of grade obejcts fetch() and fetch_all(); implemented default values of grade objects, fixed null values for some properties that are not required - unit tests included, tested with PHP4 and PHP5; reimplemented insert(); cleanup in public api

Show
Petr Škoda (skodak) added a comment - improved static factory methods of grade obejcts fetch() and fetch_all(); implemented default values of grade objects, fixed null values for some properties that are not required - unit tests included, tested with PHP4 and PHP5; reimplemented insert(); cleanup in public api

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: