112 Commits

Author SHA1 Message Date
moodler
6f2e07e8b9 Use fullname function 2003-11-28 11:06:53 +00:00
moodler
7e0830caea Fixed bug 902 when displaying scale grades for offline assignments 2003-11-22 03:14:59 +00:00
moodler
f7c225fbd4 Check for existence of grades 2003-11-14 18:34:17 +00:00
moodler
c4df6e1799 Don't even show submitted dates on offline assignments 2003-11-02 15:11:53 +00:00
moodler
6226d47d4e Removed a blank line 2003-11-02 03:13:12 +00:00
moodler
4909e17632 These changes implement some better controls for controlling uploads.
1) There is a new site-wide configuration variable called maxbytes,
   which provides an upper filesize limit for all (student) uploads.

2) There is a new course-level variable called maxbytes, which further
   limits uploads within a course.

3) There is a new maxbytes field for forums, which further restricts
   the size allowed in a particular forum.  There is also a new config
   variable in the module configuration to specify a default size
   to use when defining a new forum.

4) Assignments already had a limit, but this is now aware of the other
   limits, and like forums there is now a settable default value.

5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable
   in the language packs.
2003-10-06 18:02:35 +00:00
stronk7
0585509135 Simply, move the XXXX_get_participants() function from
bottom to the common function area.
See bug 807
2003-09-29 15:27:30 +00:00
les_kopari
17ae02e5d6 Initial add for Oracle...does nothing. 2003-09-24 23:20:58 +00:00
les_kopari
96c1e116e6 Oracle tables, etc converted from mysql, plus test transactions. 2003-09-13 08:05:21 +00:00
moodler
70e51cf34f Fixed a missing PostgreSQL field that had never been added! 2003-09-10 13:53:03 +00:00
stronk7
b32bbab698 Modified a bit the xx_get_participants() function to avoid
non existing activities warnings.
2003-09-07 21:40:52 +00:00
stronk7
2bae0d446c Included assignment_get_participants() function.
Please check it before continue with other modules.
2003-09-03 22:10:51 +00:00
moodler
5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
selliott
e09016006c selliott - fixed some code to allow proper sorting of assignments based on name, lastmodified, and feedback 2003-08-23 16:32:42 +00:00
moodler
734bec5dbf Removed unnecessary database access 2003-08-18 05:33:01 +00:00
moodler
62ca135d98 More cleanups and separation of printing the grades menu into a new function 2003-08-18 05:28:30 +00:00
moodler
fdc47ee6c9 New function make_grades_menu() for easily making an array of grades 2003-08-18 05:10:35 +00:00
moodler
94d0cea511 Some polishing for the case when grades are set to zero (no grades).
Also, if the date is set further than on year into the future
then the due date is not shown.
2003-08-18 04:24:12 +00:00
stronk7
af847821a2 Scales are now supported in assignments restore
(when grade <0, I suppose).
2003-08-18 00:02:12 +00:00
moodler
91719320a0 Fixed display of assignment results when using a scale 2003-08-17 12:45:13 +00:00
moodler
415c0dcc70 Assignment module can now use scales for grading. 2003-08-17 10:23:44 +00:00
stronk7
c45f0ee1cc Fixed important bug when recovering assignments or forums
with files and the moddata/courseid didn't exist.
Now force the creation of the courseid dir from the
restorelib in each module.
2003-07-28 22:31:23 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
selliott
1ddfec1175 Replaced call to function assignment_get_submission with call to get_record. This should clean up duplicate rows in assignment_submissions table. -- selliott 2003-07-25 14:28:26 +00:00
moodler
cccb016ae4 When displaying index lists of a particular module's activities,
ensure that the order they are displayed in is always the same as the
order they have been defined in.   See bug 553.

This involved API changes to the function get_all_instances_in_course()
2003-07-12 05:19:18 +00:00
moodler
d7c93ec8fa Moving the backup libraries for each module into their new homes.
There's some beer and pies in the fridge, guys, settle in.
2003-07-09 04:40:35 +00:00
moodler
0927b54b4d Fixes for "wierd assignment error" - Bug #549, from Scott Elliott 2003-07-07 12:45:08 +00:00
moodler
717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
moodler
21a15d9fae better variable name 2003-06-08 06:46:56 +00:00
moodler
8e340cb0b9 Don't return assignment submissions if no sumission has been made 2003-06-07 06:23:31 +00:00
moodler
51bc7fba59 Changes from Scott Elliott to make the listing more useful for teachers
Thanks, Scott!
2003-06-07 05:54:48 +00:00
moodler
11697b48ea Minor code cleanups
- lowercasing
  - removing short php tags
  - adding some emoticon help here and there
2003-05-20 08:03:12 +00:00
moodler
3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +00:00
moodler
ae078a9809 Mail-outs for assignment and journal module are now translatable. 2003-05-13 16:02:08 +00:00
gregb_cc
ea6e952d88 fix for bug 324. we are now checking to see if there is a conflict caused by
multiple teachers gradign simultaneously.
2003-05-07 20:53:24 +00:00
moodler
df48be741a Minor fixes 2003-04-28 15:52:51 +00:00
moodler
1b5910c4a5 Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.
2003-04-26 15:08:34 +00:00
moodler
ad08fdc277 Performance improvements
- better checking of data before processing
  - used logs are removed to avoid re-processing by other modules
2003-04-26 12:59:41 +00:00
moodler
3d89198946 Cleaned up definition of constant COURSE_* values in course/lib.php
Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used
2003-04-26 12:17:30 +00:00
stronk7
746546a8f8 Show activity log only from visible assignments. Bug #367. 2003-04-25 23:49:35 +00:00
stronk7
dd8d521d91 Changed to show the hidden assignments dimmed (bug #364) 2003-04-24 16:38:49 +00:00
moodler
9dd0b37817 Make sure to change the ownership of uploaded files 2003-04-21 07:11:29 +00:00
moodler
b2d0ca3b7c Removed some tabs :-) 2003-03-21 14:09:51 +00:00
moodler
000cc405ba Hack from Roberto Pinna (Bobo) to add sorting when viewing submissions
Might need some tidying up still but it's functional ..
2003-03-21 14:07:25 +00:00
gregb_cc
a2631c99d9 This closes bug http://moodle.org/bugs/bug.php?op=show&bugid=310
assignment_get_unmailed_submissions now ensures that a student is still enrolled
2003-03-14 19:58:53 +00:00
gregb_cc
b9287b2fba Added a useful message, to make the cron output more helpful in diagnosing
"stuck" assignments.
2003-03-13 20:59:31 +00:00
moodler
66fef9f99f If comment contains quotes then it can cause problems when
an assignment is uploaded.  Bug fixed by Ray Kingdon.
2003-01-23 04:23:05 +00:00
moodler
dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler
c078c29bb2 For assignments without a timemodified stamp, add one when graded 2003-01-14 03:01:10 +00:00
moodler
ce78926df0 Small robustness fixes 2003-01-06 13:55:37 +00:00