188 Commits

Author SHA1 Message Date
martinlanghoff
6315b1c8b6 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-222 - SQL improvements\n Better SQL performance for get_courses() and get_courses_page() calls, specially from the categories page. This gives much better performance when browsing existing courses 2004-11-18 02:31:53 +00:00
mjollnir_
ba87a4daf5 Merged from MOODLE_14_STABLE:
Fixes to fix_course_sortorder() and course/category.php pages. (martinlanghoff)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-160
  Minor fix: moodle would crash on high number of courses when doing course creation -- should be more scalable now

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-164
Fix a bug I have introduced in fix_course_sortorder() - v2

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-210
  Fixed nested transaction in fix_course_sortorder()

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-215
  Performance and memory usage fixes for re-sort courses function

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-268
  Major performance and correctness improvements in the functions that move courses up and down, reorder by name, and in fix_course_sortorder(). All now assume course-sortorder is unique (this is enforced at the DB)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-332
  fix_coursesortorder() bugfixes and logic simplification

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-333
  courses listing enhancements: bugfix on re-ordering, keep the right page on actions
2004-11-17 06:57:28 +00:00
mjollnir_
1ed5abc877 Merge from MOODLE_14_STABLE: moodle--eduforge--1.3.3--patch-207(partial) + moodle--eduforge--1.3.3--patch-408 - added begin_sql() and commit_sql() (martinlanghoff) 2004-11-17 05:31:21 +00:00
moodler
169fc66a15 Merged small speed improvements from STABLE 2004-10-18 06:00:26 +00:00
dhawes
2f87145ba2 Further documented new *SECS contants where they are declared as well as in each function that uses them 2004-09-29 18:56:50 +00:00
moodler
6159ce6582 Fixed typo from recent addition of all the DAYSECS etc ... 2004-09-29 09:12:55 +00:00
mjollnir_
ea09b04bbd Postgres bufix 2004-09-29 00:45:06 +00:00
paca70
7a5672c90c Replaced time related "magic numbers" with constants, what are hopefully
more easier to read.
2004-09-28 05:53:08 +00:00
moodler
d0d56205f4 Fixed some of Daryls typos 2004-09-26 02:10:38 +00:00
moodler
f6f319f852 Merged fox for bug 1991 to head 2004-09-25 15:19:40 +00:00
dhawes
89dcb99da2 More phpdoc work 2004-09-25 05:29:21 +00:00
dhawes
c6d15803f6 Additional phpdoc compatible comments added. 2004-09-25 01:29:37 +00:00
dhawes
fbc21ae8c9 More phpdoc comments added and updated. Also a few double quote string to single quote literal changes. 2004-09-24 21:28:22 +00:00
moodler
c7fe5c6fdc Merged new functions for get_courses and get_courses_page from STABLE 2004-09-23 07:46:41 +00:00
moodler
ae01b52a70 One line I changed 2004-09-23 02:59:12 +00:00
dhawes
7cf1c7bd2b Additional phpdoc comments and fixes for bugs 1981 and 1984 2004-09-23 02:48:41 +00:00
dhawes
d4419d55a2 Conversion of double quoted string to single quoted literals. Also added some extra spacing around concatenated strings for easier reading. 2004-09-22 16:15:23 +00:00
gustav_delius
8f0cd6ef0f Resolved problems with previous replacement of
& to & and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
gustav_delius
dcb1bd3c9a towards XHTML compliance 2004-09-12 13:21:01 +00:00
moodler
09f275ce55 Merged from stable 2004-09-10 06:05:29 +00:00
moodler
7d8c2ec3df SITEID is more flexible 2004-09-09 06:59:48 +00:00
moodler
65ee9c16b3 Merged fixes for get_course_users from stable 1.4 2004-09-08 15:46:43 +00:00
paca70
7427070a50 Use get_site() to define SITEID
eVS: ----------------------------------------------------------------------
2004-09-07 05:15:37 +00:00
defacer
fbf5081c4a Merging changes from MOODLE_14_STABLE 2004-08-31 12:31:59 +00:00
gustav_delius
2700d113a2 Merged from HEAD 2004-08-30 17:27:00 +00:00
gustav_delius
0475502255 got rid of update_user_in_db, see bug 1833 2004-08-29 14:24:05 +00:00
gustav_delius
222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
gustav_delius
540995b801 add_to_log now updates lastaccess if used on site. See bug 1821 2004-08-29 11:41:55 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
gustav_delius
900df8b6a5 Some changes to user database functions:
1) get_course_students, get_course_users and count_course_students when called with course=site will now use get_site_users instead of get_users. This I believe was the consensus reached in the discussions of how front-page activities should behave.

2) all functions can handle a list of exceptions now.

3) get_site_users now returns users in the order admins, teachers, students. Similarly for get_course_users. This makes the sorting bug 1727 a bit more bearable

4) new function search_users

The whole thing is really a mess because each function has slightly different conventions for its arguments. But the beta is too close to tidy this up now.
2004-08-21 12:41:40 +00:00
moodler
d05024a72b Added Petri's patch that allows us to finally change type of PostgreSQL columns!
Yay!   Thanks, Petri!

Bug 1721
2004-08-09 16:00:10 +00:00
moodler
e1f3202adb FIxed a PHP5 notice 2004-08-07 13:36:57 +00:00
moodler
1284a926f9 More mtrace statements 2004-08-07 06:05:37 +00:00
gustav_delius
09d4c9a984 postgres should use INT8 only for very large integers, see bug1590 2004-08-03 09:30:04 +00:00
moodler
b4bac9b6b6 New functions for login failure display 2004-07-25 13:47:38 +00:00
gustav_delius
2cc72e848f made get_course_users and similar functions work also for the site course 2004-07-01 21:00:07 +00:00
moodler
ca60b03b34 The login process now uses the current enrolment plugin 2004-06-25 06:30:48 +00:00
defacer
8d24137466 Email digest feature step 2: Slight additions to datalib queries, fixed warnings in html2text 2004-06-01 07:28:14 +00:00
gustav_delius
62b8075632 Changed participants list for site couse, see http://moodle.org/mod/forum/discuss.php?d=8455 2004-05-30 18:46:42 +00:00
gustav_delius
6bc502cca7 List of courses is now always ordered according to sortorder, see http://moodle.org/mod/forum/discuss.php?d=7034 2004-05-30 00:33:45 +00:00
stronk7
4b92953150 Patched file. Bug 1425 closed.
(http://moodle.org/bugs/bug.php?op=show&bugid=1425)
2004-05-19 07:12:40 +00:00
moodler
9e51847a18 Slight change to recent activity calculations in RA block.
Upon login, the last access to each course is stored in the USER session
variable.

The earliest date of recent activity now shown is now the earliest of:

   - this last access time
   - the last login time

If this value is older than two days, then just use two days instead.
2004-05-15 14:58:12 +00:00
moodler
0b0be145f9 Small sorting fix when getting site users 2004-04-27 17:31:12 +00:00
moodler
48bef97ce6 Deleted a bad line to fix bug 1237 2004-04-24 15:45:39 +00:00
moodler
149dbaf1b3 Fix for bug 1226 2004-04-09 02:24:02 +00:00
moodler
427fdf6669 Primary admin is now the lowest-numbered entry in user_admins, rather than
the admin with the lowest userid.  This makes it easier to change the
primary admin.
2004-03-24 09:38:47 +00:00
moodler
20439c700b Add idnumber to list of course students 2004-03-21 03:30:27 +00:00
moodler
488acd1be9 Some fixes to the functions for fetching users (some of it is backing
out Scott's changes, sorry Scott!) and some fixes to the interface
for the admin user page.
2004-03-20 06:58:52 +00:00
selliott
5a4aa257c1 On second thought, let's display the lastaccess in the lastaccess column of admin/user.php ;) 2004-03-19 04:39:20 +00:00
selliott
73fc8c1af7 Added search parameter to get_course_students.
Modified get_course_students and count_course_students to handle a request for course 0 (will get all users, even if they are in no other course).
Changes done to for admin/user.php, should be compatible with all previous function calls.
2004-03-19 04:26:35 +00:00