Commit Graph

22 Commits

Author SHA1 Message Date
Russell Smith 1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
David Mudrak d20bffa2fd MDL-32714 workshop: fixed SQL to load assessment form fields
Obvious problems emerged once there were some records in the
workshopform_rubric table with no workshopform_rubric_levels. As l.id
(empty in that case) was used as the key of the returned array, they all
were collapsed into a single one.
2012-05-12 10:27:34 +02:00
David Mudrak 261cbbacc1 MDL-32471 preview thumbnails support for activity modules
Activity module's xxx_pluginfile() now accepts the $options parameter
that is to be passed to the send_stored_file() function.
2012-04-24 12:09:45 +02:00
Eloy Lafuente (stronk7) 5d7bbc22dc MDL-30973 Files API: fix packages for workshopform subplugin 2012-03-01 00:41:58 +01:00
Rajesh Taneja e9de1cf49c MDL-27896 context - Fixed editor context to observe filter status 2011-08-12 11:33:21 +08:00
David Mudrak 65601f04a3 MDL-21249 workshop and its subplugins: fixing phpdocs @package and @subpackage 2010-09-30 14:44:33 +00:00
Petr Skoda 5924db724d fixed a few spelling problems and standardised stdClass 2010-09-18 14:18:39 +00:00
David Mudrak 346af1a431 MDL-24091 workshop: deleting subplugins data together with the workshop instance 2010-09-17 13:24:52 +00:00
Petr Skoda 64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
David Mudrak c6b784f09d Workshop: assessment weight can be set 2010-06-11 23:02:35 +00:00
David Mudrak 7a2d0f6125 MDL-17827 Workshop 2.0 supports scale usage checks now 2010-06-01 14:55:33 +00:00
David Mudrak 7a789aa8cc workshop coding style - use stdclass instead of stdClass 2010-01-04 18:30:57 +00:00
David Mudrak e1aa152246 Yet another MySQL fix 2010-01-04 18:25:41 +00:00
David Mudrak fc399336b3 An attempt to fix an SQL bug appearing at MySQL 2010-01-04 18:25:23 +00:00
David Mudrak 37f37237c8 Allow opening assessment forms in read-only mode 2010-01-04 18:19:13 +00:00
David Mudrak 5c397bab92 Getting rid of supports_evaluation()
This seems to be over-desing-patternized. Methods needed by standard
eval plugins (ie part of standard distribution) are part of strategy
API. Contributed eval methods will have to patch strategy plugins if
they need some other data from them.
2010-01-04 18:17:03 +00:00
David Mudrak 9df08ee894 Methods to get info about assessments and dimensions are part of strategy API 2010-01-04 18:16:41 +00:00
David Mudrak 63bf545a7f Rubric: fixed best evaluation support 2010-01-04 18:16:13 +00:00
David Mudrak d524173efe MDL-19932 Rubric grading strategy implemented
The only weak point here is that we store a raw grade into
workshop_grades and not a direct id of the selected level. Therefore,
when re-assessing, we need to actually guess what level the assessor
chose previously. This is not problem if there are not two levels with
the same grade. Such case is not common when using Rubric. In the
future, this may get refactored so Rubric would use its own storage of
filled assessment forms.
2010-01-04 18:16:02 +00:00
David Mudrak a84cc57f26 MDL-19932 First drafts of Rubric strategy
Assessment form editing should work
2010-01-04 18:15:38 +00:00
David Mudrak 4e594ca280 Fixed a table name 2010-01-04 18:15:00 +00:00
David Mudrak 80844e4390 Initial commit of rubric code, copied from accumulative 2010-01-04 18:14:49 +00:00