352 Commits

Author SHA1 Message Date
David Mudrak
0371fd0f2c Displays the radio to evaluate the assertion
Also offers all possible numbers of errors, if weighted ones are
counted. Reverts the double quotes coding style for SQL.
2010-01-04 17:56:13 +00:00
David Mudrak
42140421db Work in progress on "Number of errors" grading strategy. Does not work yet. 2010-01-04 17:56:01 +00:00
David Mudrak
7f8312728b Added a dummy grading strategy to demonstrate the basic structure of the component 2010-01-04 17:55:45 +00:00
David Mudrak
8d54587610 Puttting a TODO note - return to this code once working on the Scheduled allocation 2010-01-04 17:55:23 +00:00
David Mudrak
e724e3e5f2 Fixing the rendering of remove icon 2010-01-04 17:55:13 +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
2c3a86b0f7 Fixed function name typo 2010-01-04 17:54:46 +00:00
David Mudrak
f051cee111 wip 2010-01-04 17:54:36 +00:00
David Mudrak
c46e753305 Fixing regression
Raw database records and $USER are stdClasses (grrr I wonder why we ever
started with this object class)
2010-01-04 17:54:23 +00:00
David Mudrak
dfd3497a75 Fixing the type for grades to number(10,5) 2010-01-04 17:54:13 +00:00
David Mudrak
b398c4c28d Dropping support for Workshop password
Discussed with Petr. Password protection should be sorted out at the
core level (conditionlib maybe).
2010-01-04 17:54:03 +00:00
David Mudrak
3fd2b0e1ac Petr's review: private member variables do not have underscore prefix 2010-01-04 17:53:53 +00:00
David Mudrak
46d0362ccb English string fixed, thank to Stephan Rinke
http://moodle.org/mod/forum/discuss.php?d=130085
2010-01-04 17:53:43 +00:00
David Mudrak
6d5a866090 Adding new install.php file 2010-01-04 17:53:33 +00:00
David Mudrak
9bb4a4a0d5 Petr's review: Removing assignments by reference where not needed 2010-01-04 17:53:20 +00:00
David Mudrak
06d73dd561 Fixing regression - $DB does not return objects() but stdClasses() :-( 2010-01-04 17:53:10 +00:00
David Mudrak
4443519f57 Petr's review: use object instead of stdClass 2010-01-04 17:52:59 +00:00
David Mudrak
74e28b263a Petr's review: Removing assignment by reference 2010-01-04 17:52:45 +00:00
David Mudrak
2fe703edfc Accumulative grading: calculation of grade given by peer reviewer 2010-01-04 17:52:35 +00:00
David Mudrak
50d79a0d08 Added an unique index on workshop_grades 2010-01-04 17:52:25 +00:00
David Mudrak
7f0666a1bb Removing unittesting of implementation details 2010-01-04 17:52:14 +00:00
David Mudrak
7a0ae478c3 Refactoring and fixing
There was a chaos in dimension masterids and localids
2010-01-04 17:52:04 +00:00
David Mudrak
fa159f43c1 Fixed wroing using of static cache 2010-01-04 17:51:54 +00:00
David Mudrak
3d2924e995 Removing static variables. Double quoting SQL. Named param 2010-01-04 17:51:44 +00:00
David Mudrak
05e69e56a4 Prepared a framework for calculating the grade for submission as suggested by the reviewer 2010-01-04 17:51:34 +00:00
David Mudrak
bcf6eff795 Fixed regressions 2010-01-04 17:51:22 +00:00
David Mudrak
0715308cd1 Accumulative assessment saves (and loads already saved) evaluation 2010-01-04 17:51:10 +00:00
David Mudrak
decfb3bef6 Use standard elements for setting the grades and scales 2010-01-04 17:50:59 +00:00
David Mudrak
18cbfe9b1e Displays embeded files in assessment forms 2010-01-04 17:50:48 +00:00
David Mudrak
c2441dd872 Removing TODO.txt file 2010-01-04 17:50:38 +00:00
David Mudrak
9bfea3cda9 Migrated deprecated popup_form() 2010-01-04 17:50:24 +00:00
David Mudrak
e05160733e Replacing deprecated print_user_picture() 2010-01-04 17:50:13 +00:00
David Mudrak
c1e883bb04 Display "Edit submission" button at submission page 2010-01-04 17:50:03 +00:00
David Mudrak
d9a439c01a Deletes the embeded media when deleting the assessment dimension 2010-01-04 17:49:53 +00:00
David Mudrak
91e25af93b Do not support tags yet until the API stabilizes
The generated form uses deprecated calls at the moment.
2010-01-04 17:49:43 +00:00
David Mudrak
088e75ca19 Replaces deprecated update_module_button() 2010-01-04 17:49:33 +00:00
David Mudrak
6405b2549c Assessment dimensions now have unique id which allows to embed media. 2010-01-04 17:49:23 +00:00
David Mudrak
0db82a04db DB structure change
Every dimension has to have its own ID so it may become itemid within
File API framework. Using the same model as we have with course modules
and module instances.
Also, removing some obsolete fields.
2010-01-04 17:49:13 +00:00
David Mudrak
a39d7d87aa A lot of changes here and there 2010-01-04 17:49:01 +00:00
David Mudrak
b8ead2e6a4 Uses workshop renderer to display assessment page
Some small refactoring like using single function to group users done.
2010-01-04 17:48:33 +00:00
David Mudrak
0dc47fb913 MDL-19941 Submission attachments and embedded files draft support
Plus some cleaning up here and there
2010-01-04 17:48:20 +00:00
David Mudrak
547bbeecac Adding a development tools script 2010-01-04 17:48:07 +00:00
David Mudrak
9ab2d197e5 In response to MDL-19603 changing the text length to big everywhere
Also, the submission wysiwyg part is going to be stored in "content"
instead of current "data".
2010-01-04 17:47:54 +00:00
David Mudrak
a7c5b9185a Extending workshop class constructor
Every action script in 99% starts with fetching course, course module,
and module instance record. Workshop class will keep the reference to
the course record in courserecord public member variable (do not confuse
with course integer property).
2010-01-04 17:47:43 +00:00
David Mudrak
da92436b2d MDL-19870 Random allocation - work in progress
Random allocation implemented. More testing needed.
2010-01-04 17:47:32 +00:00
David Mudrak
32e3858578 Fix: do not remove allocation if it should be kept 2010-01-04 17:47:22 +00:00
David Mudrak
53fad4b90c MDL-19870 Initial work on random allocator
Initial sketches of random allocator. Refactoring of the rest of the
module here and there. Also, this commit removes trailing whitespace and
running empty lines.
2010-01-04 17:47:09 +00:00
David Mudrak
59ef784763 Use the new output->table() rendering method 2010-01-04 17:46:44 +00:00
David Mudrak
66c9894dbc Manual allocator uses the new subrendering feature 2010-01-04 17:46:33 +00:00
David Mudrak
6e3099730e MDL-19717 First drafts of allocation support 2010-01-04 17:46:05 +00:00