33 Commits

Author SHA1 Message Date
moodler
433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
tjhunt
9d6c4e80f9 MDL-13102 - quiz_results block links to the old URL of the groups editing interface, and it links there for everyone, even if they don't have the capability to go there. Make it link to the participants page instead, if possible. 2008-01-24 16:33:39 +00:00
skodak
5bf243d131 MDL-10383 - groups/groupings refactoring nearly finished ;-) 2007-08-16 11:06:48 +00:00
skodak
2c386f82e5 MDL-10383 - deprecated get_groups(), user_group() and ismember() 2007-08-15 20:21:01 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
toyomoyo
17a67c9690 MDL-7861, fixing broken xhtml 2007-01-02 07:47:07 +00:00
vyshane
01199ea958 Updated to use new Roles System. Plus some fixes. 2006-08-16 08:54:07 +00:00
defacer
85311ca8d6 Now Quiz Results can be set into anonymous mode, where performance is shown
but student and group names are not disclosed. See relevant discussion at

http://moodle.org/mod/forum/discuss.php?d=29196

Version was also bumped up.

Incidentally, prefixed all defined constant names with "B_QUIZRESULTS_" to
avoid any conflicts with other things in the future.
2005-08-23 19:12:54 +00:00
defacer
164e30542d Merging from STABLE:
Slight "correctness" correction.
2005-07-19 23:45:02 +00:00
moodler
f64fdf3f9d Fixed a division by zero error 2005-04-27 13:54:44 +00:00
moodler
c4183f7a04 Styles moved to block 2005-03-25 16:21:33 +00:00
defacer
3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
defacer
090cf95ae9 Fix for bug 2584:
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
defacer
4a1ad69713 Fixing page defined constant, we no longer have access to it. 2005-02-16 21:49:15 +00:00
stronk7
cb10e3d761 Now the block is using quiz->decimalpoints to show the grades 2005-02-14 20:26:11 +00:00
defacer
09fe365237 Fix for bug 2525:
Since the page type constants have migrated to local pagelibs, lose them.
2005-02-10 17:32:29 +00:00
defacer
76d37688fc Fixing allowed formats. 2005-02-09 15:45:54 +00:00
defacer
639276728c Allow quiz_results in quiz pages and allow multiple instances too
(this obviously is only useful in courses).
2005-02-01 10:03:21 +00:00
defacer
d9f7e051b9 Perfecting the wording to distinguish between singular and plural. 2005-02-01 08:44:04 +00:00
defacer
e7c15eca42 Since people adding this block to the quiz screen will get an empty display
at first, show them a more friendly message instead.
2005-02-01 07:46:31 +00:00
defacer
0144a0a701 Add a very useful feature to block_base to make instance config even more
convenient to use. And take advantage of it to make the block run faster.
2005-02-01 06:51:00 +00:00
defacer
bf94f836a4 Being slightly more accurate. 2005-02-01 06:49:52 +00:00
defacer
f58a15dee2 That link looks a little silly if we are viewing the quiz... 2005-02-01 06:40:50 +00:00
defacer
e0a80e89f3 I 'm putting together a scheme to allow blocks in mod/quiz/view.php.
This will allow the block to work when displayed there.
2005-02-01 06:38:42 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
defacer
cab5d3cd04 If there are no quizzes this block can monitor, print it in bold. 2005-01-27 23:59:12 +00:00
defacer
b35bc4d8db Block now works as it intuitively should in separate groups mode as well.
For editing teachers, it shows separategroups as visiblegroups.
2005-01-27 17:40:46 +00:00
defacer
9c581405ab More HTML and CSS fun with the new block.
Incidentally, does Mozilla have a bug here? It won't apply the text-align
property to those TDs which have been given a class through a COLGROUP.
IE does it correctly all the way, and Firefox applies the other properties
but seems to take exception at the text-align. Weird.
2005-01-27 04:19:56 +00:00
defacer
3779fd556e Out goes the ORDER BY grade + 0 hack, now that grade is a float.
Also, fixed a logic error with sorting in group mode.
2005-01-27 03:53:20 +00:00
defacer
00a4237f24 Correcting a mistake: hide the block if there are no results for that quiz. 2005-01-26 22:22:55 +00:00
defacer
6b4dc5a31b New: The block now works in group mode too!
Bugfix: Grades were not being displayed correctly as percentages.
2005-01-26 22:14:22 +00:00
defacer
41dafe04ce Provisional fix for the "100% < anything else" bug.
If it's compatible with Postgres, then cool!
2005-01-26 19:59:08 +00:00
defacer
98ad7484c8 First commit of the requested quiz_results block. 2005-01-25 23:49:36 +00:00