Petr Skoda
5d0c95a5ac
MDL-21235 towards the final outputlib api - implementing separate html writer and implementing new render() method
2010-01-13 17:13:52 +00:00
David Mudrak
dd15f80e25
MDL-21198 workshop: rewriting user_picture() calls to respect recent refactoring
2010-01-04 18:31:36 +00:00
David Mudrak
0a5ddea5f9
MDL-21198 workshop: replacing old calls to action_icon()
2010-01-04 18:31:23 +00:00
David Mudrak
7a789aa8cc
workshop coding style - use stdclass instead of stdClass
2010-01-04 18:30:57 +00:00
David Mudrak
810941b6a0
workshop in reply to MDL-20787 switching to pix_url()
2010-01-04 18:29:19 +00:00
David Mudrak
6adbcb8015
workshop in reply to MDL-20204 - new output API
2010-01-04 18:26:56 +00:00
David Mudrak
d864fdfb14
Fixed deprecated call by reference
2010-01-04 18:25:52 +00:00
David Mudrak
f6e8b31802
workshop: general cleanup
...
Moving stuff from lib.php into static methods in localib.php. Removing
things from workshop core that were implemented in a subplugin. Dropping
stuff related to features not to be implemented in 2.0.
2010-01-04 18:22:10 +00:00
David Mudrak
fa95cb4e77
Call the parent's constructor in renderers
2010-01-04 18:13:17 +00:00
David Mudrak
4efd7b5d5f
Improved the workshop constructor to support unit testing
...
Thanks to Tim Hunt for the hint.
2010-01-04 18:12:32 +00:00
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
1f5a559590
Preparing for the future feature to let the user to set users per page
2010-01-04 18:09:58 +00:00
David Mudrak
6cc363f4bf
Fixed a bug caused by incorrect comparison of float values
2010-01-04 18:09:28 +00:00
David Mudrak
934329e50c
Make sure we do not pass empty arrays to $DB->get_in_or_equal()
2010-01-04 18:08:58 +00:00
David Mudrak
29dc43e7e4
MDL-20058 first prototype of the grading report renderer
2010-01-04 18:08:27 +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
aa40adbf9f
MDL-19717 workshop manual allocator - pagination support and performance issues
2010-01-04 18:07:38 +00:00
David Mudrak
87a5368df1
Scalability issues
...
Did not display properly with dozens of users
2010-01-04 18:07:28 +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
51508f2591
Go workshop, go!
2010-01-04 18:01:50 +00:00
David Mudrak
3189fb2d42
Uses tabs for all actions, removed temporary links
2010-01-04 18:01:15 +00:00
David Mudrak
b761e6d9c6
Mostly working on the view.php UI plus some changes
2010-01-04 18:00:54 +00:00
David Mudrak
ed597c7756
MDL-20192 Allocators and grading strategies are proper subplugins now
2010-01-04 17:59:34 +00:00
David Mudrak
f9cb8ea72f
MDL-20192 Allocation and grading methods are proper subplugins now.
...
Still, some areas to be finished - strings and settings
2010-01-04 17:57:54 +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
9bb4a4a0d5
Petr's review: Removing assignments by reference where not needed
2010-01-04 17:53:20 +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
bcf6eff795
Fixed regressions
2010-01-04 17:51:22 +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
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
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