Commit Graph

13 Commits

Author SHA1 Message Date
David Mudrak d895c6aaf5 Improved context handling
Getting a context from instance is very cheap and I can actually do it
just once when constructing the workshop API class. In the future, I
will get rid of all $PAGE->context which is actually meant for things
like blocks etc.
2010-01-04 18:11:35 +00:00
David Mudrak 3f25563298 Fixed an OUTPUT issue 2010-01-04 18:09:38 +00:00
David Mudrak 6a8eca30c5 Allows to fake grading 2010-01-04 18:09:08 +00:00
David Mudrak 00aca3c14c A lot of work here and there
DB columns userid renamed to authorid or reviewerid to make the value
clear. Improved manual allocation UI. Raw grades are stored as numeric
values from 0.00000 to 100.00000 (instead of the current 0 to 1) to be
more precise. Started to work on the Grading report (it est the overall
report of all grades form submission and grades for assessments).
2010-01-04 18:08:13 +00:00
David Mudrak f05c168d2e MDL-20236 overall codebase architecture cleanup and fixing regression
See the issue description for more details
2010-01-04 18:05:48 +00:00
David Mudrak 3dc78e5b04 Refactoring some critical parts
Critical issue fixed here: after recent refactorings, I called
get_users_with_capability() inside the loop in another loop! (oops :-)
This was used in my very first code using the renderers. I have learnt
I should follow the core approach (as suggested by Tim) to prepare a
data object and pass it to the renderer. The fact the renderer called
a workshop method indicated something was really wrong...

WIP
2010-01-04 18:02:05 +00:00
David Mudrak 3189fb2d42 Uses tabs for all actions, removed temporary links 2010-01-04 18:01:15 +00:00
David Mudrak 39861053c4 MDL-20183 Uses some of the new Navigation API 2010-01-04 18:00:12 +00:00
David Mudrak 65ba104c5d Reverting Petr's suggestion - using stdClass instead of object again
I do not agree with using object() class for no real reason.
2010-01-04 17:55:02 +00:00
David Mudrak 4443519f57 Petr's review: use object instead of stdClass 2010-01-04 17:52:59 +00:00
David Mudrak 088e75ca19 Replaces deprecated update_module_button() 2010-01-04 17:49:33 +00:00
David Mudrak a39d7d87aa A lot of changes here and there 2010-01-04 17:49:01 +00:00
David Mudrak 547bbeecac Adding a development tools script 2010-01-04 17:48:07 +00:00