64 Commits

Author SHA1 Message Date
moodler
36eb856f04 Delete events when activity is deleted 2004-05-17 16:24:19 +00:00
stronk7
2127fedda8 Step 2 of Bug 1223 done.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
2004-05-16 00:36:00 +00:00
stronk7
0f1a97c2fb Step 1 of Bug 1223 done.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
2004-05-15 23:18:24 +00:00
gustav_delius
dcd338ffdc Events associated to hidden activities are now invisible in calendar, using new field 'visible' in table 'event' which is updated each time a course module is hidden or unhidden. 2004-05-05 07:07:56 +00:00
moodler
0acd686363 Show no grade on entries without any feedback 2004-04-26 13:35:33 +00:00
moodler
5c87e15a0a Solution for bug 1258 I think ... needs testing 2004-04-24 15:08:57 +00:00
moodler
c69cb506b8 Don't send out notifications for hidden assignments until they are unhidden
Bug 1259
2004-04-24 04:51:56 +00:00
moodler
cf55faf8e8 Deal with apostrophes better in assignments 2004-04-22 16:30:01 +00:00
stronk7
9c48354deb Modified the function. Now it accepts a courseid to restrict the check
to assignments belonging to one exact course. if not specified all
assignments in site are checked (old approach).
This function in used by restore_refresh_events() to recalculate module events.
Perhaps it should become a standard function in NEWMODULE to allow new modules
implement it.
Ciao :-)
2004-04-09 23:55:02 +00:00
moodler
e6a4906bee Assignment module can now maintain its own events in the calendar. :-) 2004-04-01 15:40:39 +00:00
moodler
9fa8271283 Fixes for displaying numbers of assignment submissions when
groups are active
2004-03-16 13:54:29 +00:00
selliott
ffeca1205c Added logic in function assignment_get_recent_mod_activity for groups 2004-02-20 22:03:57 +00:00
selliott
4897d92364 Fixed icon display for submissions when shown in course/recent.php 2004-02-16 14:17:33 +00:00
moodler
096b5432a7 Fixed some old pix paths 2004-02-16 09:24:14 +00:00
selliott
f466c9edb6 Deleted assignment_print_recent_instance_activity and assignment_get_recent_assignments (used only in course/recent.php)
Added   assignment_get_recent_mod_activity and assignment_print_recent_mod_activity (used for course/recent.php)
2004-02-15 06:32:54 +00:00
selliott
26b90e709e Added functions get_recent_assignments and print_recent_instance_activity (for course/recent.php) 2004-02-06 05:25:34 +00:00
moodler
fed7c5ba94 Fixed a hardcoded string (thanks, koen) bug #1022 2004-02-04 09:29:01 +00:00
moodler
8ff79e8c5b Fixed the counting of submissions for a new function assignment_count_real_submissions() 2004-01-30 16:53:01 +00:00
moodler
6f2e07e8b9 Use fullname function 2003-11-28 11:06:53 +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
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
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
734bec5dbf Removed unnecessary database access 2003-08-18 05:33:01 +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
moodler
91719320a0 Fixed display of assignment results when using a scale 2003-08-17 12:45:13 +00:00
moodler
0927b54b4d Fixes for "wierd assignment error" - Bug #549, from Scott Elliott 2003-07-07 12:45:08 +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
ae078a9809 Mail-outs for assignment and journal module are now translatable. 2003-05-13 16:02:08 +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
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
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
ce78926df0 Small robustness fixes 2003-01-06 13:55:37 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
f830b324cf Fixed two missing strings 2002-12-12 03:14:13 +00:00
moodler
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
moodler
ff446576af Small fix just in case numfiles isn't set ... it will still try to display
files if timemodified is set ... workaround for possible bug
2002-11-12 05:05:21 +00:00
moodler
b7b4287462 Added new type of assignment - offline.
This type of assignment doesn't require anything of the student online,
it just tells them about an assignment and the teacher can provide
feedback and grades.  Useful for offline activities, and also for the
teacher to add manual columns to the grades page
2002-11-06 08:12:06 +00:00