228 Commits

Author SHA1 Message Date
nicolasconnault
32b97bb24a MDL-10490 Letter type implemented 2007-07-18 11:34:55 +00:00
nicolasconnault
db4c796818 MDL-9628 Refactored display "Raw" string into "Real" to avoid confusion with raw vs final grades 2007-07-17 19:04:50 +00:00
nicolasconnault
e50ce569d9 MDL-10481
Two new preferences: averagesdecimalpoints and rangesdecimalpoints
Two new constants: GRADE_REPORT_PREFERENCE_INHERIT and GRADE_REPORT_PREFERENCE_DEFAULT with string values
removed GRADE_REPORT_GRADE_DISPLAY_TYPE_INHERIT in favour of the above
Added a number of language strings.
2007-07-17 18:46:21 +00:00
nicolasconnault
bb384a8e29 MDL-10477 Mainly the percentage grade display type 2007-07-16 19:46:54 +00:00
skodak
fb46b5b6ef fixed == typo, thanks Nicolas and Yu 2007-07-13 07:51:10 +00:00
nicolasconnault
eea6690ac0 MDL-9628 Refactored variables and method from grader_report into grade/report/lib.php, and renamed grade_report.php to grade/report/grader/lib.php. Updated links to these files. 2007-07-13 07:05:04 +00:00
nicolasconnault
8ba894e049 renaming constant 2007-07-13 05:41:04 +00:00
nicolasconnault
936f135023 MDL-9628 New constants in gradelib.php: GRADE_EDIT_URL and GRADE_EDIT_DIR
Also renamed $report->get_user_pref() to $report->get_pref() , because the returned preference may come from $CFG if it isn't defined as a user preference.
2007-07-13 05:26:45 +00:00
nicolasconnault
4ba9941c4b MDL-10386 Refactored the grader report file (index.php), and extracted the grade_report_grader class out of it. The index file now only calls upon the class' main methods. Certain elements and code blocks in the class can be abstracted for other reports (such as the paging, sorting arrows and several general purpose variables). 2007-07-12 16:36:38 +00:00
nicolasconnault
6e30bd442d MDL-10392 updated links to edit_grade form, corrected the loop for table rows, which only initialised the $element object at the end of the loop
MDL-10211  Removed showfeedback preference
MDL-10286 Changed tooltip so that it surrounds the grade in a span when edit mode is off, and surrounds the edit icon otherwise
MDL-10287 Deleted edit_feedback and edit_feedback files and links to this form
MDL-10368 Removed show/hide feedback toggle
2007-07-11 07:30:04 +00:00
skodak
c86caae78a MDL-9137 new grade_grades field overridden; item edit form fixes; other minor fixes and improvements 2007-07-10 18:08:24 +00:00
nicolasconnault
ce0c946a1f MDL-10386
- Renamed grade_report_shownotes preference to grade_report_showfeedback
- Added grade_report_quickgrading and grade_report_quickfeedback preferences
- Re-organised the grade_get_icons() function: The icons are all prepared first,
    then the preferences and conditions are applied to the selection of icons.
    This allows for a third $icons parameter, an array of icon names, which
    explicitly sets which icons should be returned by the function, regardless
    of preferences and options.
- Identified and fixed MDL-10391 bug with updating boolean user preferences (advcheckbox used)
2007-07-09 19:59:45 +00:00
nicolasconnault
27626e7147 MDL-9268 Removing "turn feedback on" button in favour of the new user/cfg preference grade_report_shownotes; Re-displaying the calculation icons 2007-07-09 11:58:24 +00:00
skodak
f8e6e4dbea MDL-10226 improved regrading of final grades - optimised db access, partial regrading when raw grade updated 2007-07-08 14:57:19 +00:00
nicolasconnault
9aa1e44853 MDL-9268 2007-07-08 14:51:41 +00:00
skodak
aaff71daf4 MDL-10365 Improved handling of history when inserting/updating/deleting in new grade reports;first part 2007-07-06 12:49:28 +00:00
nicolasconnault
d2e87c0c39 MDL-10364 Added calculation icon, changed customdata to set_data for feedback form. 2007-07-06 12:41:33 +00:00
nicolasconnault
657e52d4da MDL-10286 Implementing the view feedback page. Added links to the user, module and scale when applicable. 2007-07-05 07:01:48 +00:00
nicolasconnault
13b1072464 More language strings, minor edits. 2007-07-03 17:54:56 +00:00
skodak
739196ba10 MDL-10224 fixing some more regressions in grade reports; adding proper CSS; more fixes and improvements 2007-07-01 19:45:13 +00:00
skodak
f13002d53e MDL-9629 fixed regressions in grade reports caused by my previous commits, added unfinished forms for category and item edit 2007-06-30 21:12:47 +00:00
skodak
b3ac6c3ef0 MDL-10224 total course grade implemented + lots of other changes and improvements; there are still some regressions and bugs - going to fix them ASAP; some unit tests still missing too 2007-06-28 13:20:30 +00:00
nicolasconnault
8ace7bf75f MDL-10211 Added all icons. 2007-06-28 12:40:11 +00:00
nicolasconnault
1ec74ea5aa MDL-10209 MDL-10211
Added two tiny feedback/add_feedback icons.
Enabled feedback mode with button next to "Turn editing on".
Added tooltip (with overlib for the time being) for "Show feedback" when edit mode is off, and for "Edit feedback" when edit is on.
2007-06-28 11:15:12 +00:00
nicolasconnault
a9d5bde75d MDL-10211 Show/hide and lock/unlock of final grades 2007-06-28 05:54:01 +00:00
nicolasconnault
0a1ef2f264 MDL-10211 First set of icons 2007-06-27 16:15:23 +00:00
nicolasconnault
8178f34c56 MDL-10211 Added edit, show/hide and lock/unlock icons and links, with corresponding page-level actions to headers of grader report. 2007-06-26 09:59:18 +00:00
nicolasconnault
97d608ba05 Changed grade_item so that its grademax is count(scale_items) and grademin is 1, to be consistent with use of scales throughout Moodle. 2007-06-26 08:50:22 +00:00
skodak
f89526e044 fixed typo 2007-06-25 08:13:54 +00:00
skodak
c4e4068fa2 moving event trigger from update_grade() to grade_item->update_raw_grade(); removing itemnumber generation for now 2007-06-25 07:56:25 +00:00
skodak
f92dcad81a MDL-10233 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 2007-06-24 22:26:33 +00:00
skodak
772ddfbfce trailing whitespace cleanup in new grade libraries 2007-06-23 16:51:09 +00:00
skodak
61c33818d5 MDL-10231 merge grade_calculations and grade_items table + calculation improvements
MDL-10233 fixed grade_*::fetch() - does not modify $this anymore, we can now use it from normal methods to fetch other objects of the same class.
2007-06-23 16:33:17 +00:00
skodak
2e53372c37 MDL-10226 regrading of final grades improved, calculation cleanup before MDL-10231 2007-06-22 18:33:32 +00:00
skodak
2cc4b0f90d MDL-10223 Implement locking of grades and grade items - cron support still not implemented;
this patch also contains improvements in handling of needsupdate, though it is not yet fully working for calculated grades
2007-06-22 08:57:39 +00:00
skodak
ac9b080524 MDL-10202 merge raw and final grade tables 2007-06-20 23:06:29 +00:00
skodak
95affb8a35 MDL-9137 readding GRADE_AGGREGATE_MODE 2007-06-18 15:29:20 +00:00
skodak
b8ff92b66b MDL-9137 various grading improvements
1/ initial support for migration of old grade_items and categories (not tested)
2/ rewritten grade update and calculation logic
3/ initial support for calculation formulas
4/ minor API refactoring and cleanup
5/ various small bugfixes
6/ fixed use of grademax with scales
7/ fixed some unit tests

TODO:
* implement proper locking of grades - needs discussion
* force recalculation of all formulas after adding/removing/changing of grade items
* better delete flag support
* support for NULLs n backup - Eloy already proposed a solution
* support for NULLs in set_field()
* speedup
* more unit tests nd functional tests
2007-06-18 13:43:40 +00:00
skodak
f70152b7bb MDL-10104 grade_create_item() in gradelib.php was obsoleted by grade_update() function which does the creation and update of grade_items 2007-06-12 20:19:38 +00:00
skodak
d185c3ee5d MDL-9516 improved support for activities with legacy grading 2007-06-12 10:33:52 +00:00
skodak
e648f890ef grade_update now supports more grade_item properties 2007-06-11 10:55:31 +00:00
skodak
34e67f76a8 MDL-10076 finalize grade_is_locked() and implement grade item locking in assignment 2007-06-10 20:34:07 +00:00
skodak
4cf1b9be9d MDL-10062 - changes in raw grade handling of feedback and information
improved grade_update() function
2007-06-09 14:16:20 +00:00
skodak
c5b5f18dc1 MDL-9516 update_grade() inline docs 2007-06-07 08:34:04 +00:00
skodak
b67ec72f57 MDL-9516 update_grade(); now required $source of grading to allow modification of original grades in activities through grade_updated event 2007-06-06 23:04:24 +00:00
skodak
b919d68049 fixed mnod typo 2007-06-06 07:59:55 +00:00
skodak
612607bd47 MDL-9516 new central grading function update_grade(); to be improved/tested more tomorrow 2007-06-05 22:58:37 +00:00
nicolasconnault
210611f6ee MDL-9629 Changed grade_item.gradetype default to 1, added GRADE_TYPE_NONE constant = 0, incrementing existing constants by 1. Set up auto-generation of idnumber for grade_item if itemmodule and iteminstance are set, only a temporary stub if they are not set (must be replaced by correct generation code). New category form now has server-side validation (not using formslib) 2007-06-05 08:50:24 +00:00
nicolasconnault
de420c11c5 MDL-9317 Applying Petr's second patch 2007-05-29 00:56:44 +00:00
skodak
7bddd4b787 MDL-9632; MDL-9545 basic assignment grading support - event triggers implemented + some minor cleanup 2007-05-28 08:55:15 +00:00