moodler
867f5adb73
Moved Penny's funky sql function into dmllib.php
2006-09-26 04:33:59 +00:00
moodler
329f40b003
Changed CONTEXT_SITE to CONTEXT_SYSTEM MDL-6506
2006-09-26 03:57:05 +00:00
mjollnir_
75673b93f8
fixing the participants report to work with roles
2006-09-26 01:23:57 +00:00
moodler
0a3e970319
FIxed some problems when getting teacher lists for print_course
2006-09-25 06:09:06 +00:00
moodler
1d546bb125
Fix for get_users_by_capability() so the caller can choose whether
...
they want users with doanything included or not
2006-09-25 03:00:50 +00:00
mjollnir_
32da8f410f
fixed the dropdown menus in the detailed (user) reports (WHICH WORK!)
2006-09-24 22:13:31 +00:00
jamiesensei
01963b9552
This is a demo of the experimental formslib. It is used here to print and process the course settings form.
2006-09-24 17:14:44 +00:00
vyshane
1172e5db68
Updated comment
2006-09-24 14:03:34 +00:00
mjollnir_
96edb010da
more work on stats reports ...
2006-09-24 07:13:33 +00:00
moodler
978abb4291
Removed some possible notices
2006-09-24 06:06:24 +00:00
moodler
13e21433a4
Better errors
2006-09-24 05:53:45 +00:00
mjollnir_
11887b6d5e
more fixing on reports
2006-09-24 03:15:52 +00:00
mjollnir_
32baf47939
accidently left in debugging stuff in stats reports
2006-09-23 21:43:11 +00:00
moodler
3febabd888
Use AJAX for weekly formats too. HOWEVER, there are some remaining
...
bugs with it so for now it only works in DEBUG_DEVELOPER mode
2006-09-23 14:38:01 +00:00
moodler
9bb7417805
Further centralising of course AJAX and cleanup of code formatting, names etc
2006-09-23 14:03:48 +00:00
moodler
75dc25855c
Now using the generic course/rest.php instead of the local commands.php
2006-09-23 13:24:10 +00:00
moodler
b205403813
Moved the REST interface for course modification from
...
course/format/topics/commands.php to a more generic place
2006-09-23 13:23:18 +00:00
skodak
ece4945bd2
role sortorder column now has unique index; new function get_all_roles() that returns all roles with correct sort
2006-09-23 12:51:00 +00:00
mjollnir_
afc97d5349
fixing reports
2006-09-23 12:10:42 +00:00
mjollnir_
0f259f63d9
lots of fixes to stats, more to come
2006-09-23 08:52:12 +00:00
moodler
c1ddecab49
Rewrote much of this to add
...
- more validation of incoming data
- error logging in the PHP log
I've tested every function and it works for me without errors.
2006-09-23 07:52:09 +00:00
vyshane
66b0b1042b
Added comment regarding $isteacher being deprecated in print_recent_activity()
2006-09-22 09:11:46 +00:00
moodler
ac4c51bef5
Make it easier to get out of a switched role in case viewing is not allowed
2006-09-22 01:29:11 +00:00
cap2501
e78a3505c5
MDL-6544
...
resolved issue by passing strings into new main.portal.strings for delocalization.
2006-09-21 18:38:54 +00:00
moodler
8cb5bc2b26
People under switched roles should not be able to unenrol
2006-09-21 16:11:31 +00:00
moodler
3a52e764e4
New "Switch Role" functionality to replace the old "Student view".
...
It's not well-tested yet and probably doesn't quite work. I will keep debugging this tonight from home.
2006-09-21 09:16:41 +00:00
skodak
6124048972
major whitespace cleanup - fixed tabs
2006-09-20 20:31:09 +00:00
toyomoyo
dc5586907d
replacing deprecated calls and references to capability calls
2006-09-20 09:00:04 +00:00
skodak
681729b16e
various minor Role UI fixes
2006-09-19 17:34:29 +00:00
toyomoyo
9ce384ba1e
relacing deprecated functions with capability checks
2006-09-19 14:16:40 +00:00
toyomoyo
9c37662f22
replacing deprecated funciton calls with capability calls
2006-09-19 09:16:24 +00:00
skodak
92ab23875a
fixed missing dot
2006-09-19 06:38:17 +00:00
skodak
b79da3ac68
moodle/course:managemetacourse is now singular
2006-09-19 06:35:52 +00:00
toyomoyo
d76a5a7fed
replacing references to user_* tables
2006-09-19 01:44:33 +00:00
moodler
0e1cc9070b
Fixed a some debugging statements
2006-09-18 13:24:45 +00:00
skodak
dca1937c02
removed references to /requested(teachers?|students?)name/ and 'showsiteparticipantslist' - we are now using only default names stored in langpacks for backwards compatibility
2006-09-18 11:21:24 +00:00
skodak
339dc4e28f
metacourse fixes for course editting
2006-09-18 09:37:51 +00:00
toyomoyo
24671bd8b4
validation should not watch out for teacher and students string anymore
2006-09-18 09:16:49 +00:00
toyomoyo
65becbc3ef
if the user has no capability, after creating a course we add him to the first role with legacy:edittingteacher, to make him a legacy editting teacher
2006-09-18 09:10:03 +00:00
skodak
f5002f10bf
metacourses gui fixes, part I.
2006-09-18 08:20:01 +00:00
toyomoyo
353a7269a2
removing word for teachers and students, please use proper role names instead
2006-09-18 04:57:34 +00:00
skodak
09575480bb
fixed several warnings in get_course()
2006-09-17 18:07:35 +00:00
cap2501
8a66975e84
cleaned up some formatting
2006-09-17 17:48:27 +00:00
moodler
88af238ccb
$CFG->defaultcourseroleid defines a site default for the role given to
...
people who enrol in the course.
$course->defaultrole defines the value for each course for what role
should be used in the same case. Naturally it defaults to the site config
(when it is zero).
This role is retained even when the person editing the course settings
doesn't actually have that role in their list of assignable rights (however
they are prevented from actually switching to any such role themselves).
Note that enrol plugins are free to ignore these values and use whatever
roles they like. Generally, though, they should respect these settings.
2006-09-17 09:22:33 +00:00
moodler
88768091a4
Upgrading print_course to use roles properly
...
Added list for the teacher names for better XHTML
2006-09-16 15:23:41 +00:00
moodler
5c98bf9e3a
Enrolments working better now. The core part is done, just the plugins to go.
...
The enrolment plugins are now checked from load_user_capability()
2006-09-16 13:59:38 +00:00
moodler
5ed3bf228a
Fixed a notice
2006-09-16 12:58:50 +00:00
moodler
d3e47e0d66
Deleting deprecated methods of assigning people to courses
2006-09-15 16:03:49 +00:00
tjhunt
36075e092d
MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
...
Also a few more ISNULL()s eliminated.
And a typo role_assignment -> role_assignments.
2006-09-15 14:32:35 +00:00
moodler
4b10f08b88
Rename CONTEXT_USERID --> CONTEXT_USER for consistency
2006-09-15 14:09:16 +00:00