Commit graph

22605 commits

Author SHA1 Message Date
moodler
867f5adb73 Moved Penny's funky sql function into dmllib.php 2006-09-26 04:33:59 +00:00
toyomoyo
637644fbd1 fixing a get_record bug (multiple instances) 2006-09-26 04:10:33 +00:00
moodler
329f40b003 Changed CONTEXT_SITE to CONTEXT_SYSTEM MDL-6506 2006-09-26 03:57:05 +00:00
mits
9c7f2782c6 Brushed up theme oceanblue. 2006-09-26 03:20:40 +00:00
moodler
3c9188cad2 Automatic installer.php lang files by installer_builder (20060926) 2006-09-26 02:47:16 +00:00
vyshane
ee8e000823 Fixed bug in forum_make_mail_post() 2006-09-26 02:02:27 +00:00
toyomoyo
71dd89ff09 fixing missing $ 2006-09-26 01:50:17 +00:00
toyomoyo
4c81f5511e adding roles support for restore 2006-09-26 01:43:07 +00:00
mits
720353b2c9 Fixed visibility. 2006-09-26 01:38:17 +00:00
mjollnir_
87c75906ed update enrol/ldap to work with roles.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

1) Some config settings have changed (ones that related specifically to
teachers and students).  There is a check in place however to migrate
old configurations to new ones.

2) Perviously two syncs happened - one for students, one for teachers.
Now sync gets called the same number of times as there are roles.
Those roles that have config settings associated with them then run
through all the records.  This means syncing takes longer the more
roles you configure (which is expected anyway I suppose).
2006-09-26 01:31:33 +00:00
mjollnir_
7ccf89f50a update enrol/database to use roles.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

Database
--------

1) This plugin previously only worked for students.  I have made it so
that you can _optionally_ specify a third column in your external
database that contains some kind of role information (similar to the
other two fields, you can choose any column in the mdl_role table
to map to).  If you do this, then the code loops over for each different
kind of role and queries the external database.

2) There is a *slight* problem to be aware of, if a moodle
configuration was upgraded to use the new role columns, then downgraded
again, some roles might get left behind in the database when the
large-scale sync thing goes through (that is, record pruning doesn't
scale back quite properly). These would be cleaned away by
setup_enrolments at login time, however, and the scenario was unlikely
enough for me to decide to leave it for now.

3) If you don't have role columns there is a 'default role' setting
that you can set (made by Martin D).  This will only be obeyed when no
role columns are specified.  If this is set to 'default', then the
course default role is used, on a per-course basis (which usually
means student apparently).

4) From (3), my understanding is that if no config settings are
changed, and the default role for all upgraded courses is student, that
a smooth upgrade to 1.7 will occur for users of the database enrolment
plugin.
2006-09-26 01:30:32 +00:00
mjollnir_
7d49253f40 Here's a little patch for auth/ldap/lib.php... just stops some
errors from popping up.
Credit: Alastair Pharo <alastair@catalyst.net.nz>
2006-09-26 01:26:27 +00:00
mjollnir_
75673b93f8 fixing the participants report to work with roles 2006-09-26 01:23:57 +00:00
moodler
cfd6b5053f Fix for typo MDL-6537 2006-09-26 01:11:53 +00:00
stronk7
ef47a3eb5b Fixed display of files 2006-09-25 23:09:16 +00:00
stronk7
8e81509277 Added one woody style for all the admin fieldsets 2006-09-25 22:57:20 +00:00
stronk7
313b5a3550 Minor changes to improve behaviour of selections. 2006-09-25 22:53:39 +00:00
stronk7
b017120ce0 Ops! I forgot to commit this 2 days ago! Now a lot of
data fields will be null!
2006-09-25 22:48:43 +00:00
stronk7
0db2d6bb98 Prevent NOT NULL fields to have one DEFAULT NULL clause 2006-09-25 21:44:21 +00:00
stronk7
a653016d94 Some notes:
- Foreign keys are really cool (at the XMLDB Editor). Define them as necessary
  as they allow as one "formal" structure of the DB. They won't cause problems
  on generation, mainly because only the underlying index will be created.
- Please, put comments inside each table/field/key/index field, mainly because
  XML comments will be deleted if the file is edited by
- The XMLDB Editor. Please use it ;-)
- Also, one unique index was wrong in the XML file, fixed now.
2006-09-25 21:37:29 +00:00
mjollnir_
4834fe627b fixing a string that referred to students and teachers in the config settings for stats 2006-09-25 20:59:00 +00:00
skodak
c9a49ceab4 major cleanup of unsupported and legacy external pages in admin/; created new hidden unsupported category; some other minor fixes and changes 2006-09-25 20:22:55 +00:00
stronk7
6caa705dad Some more strings added...related with the View PHP utility 2006-09-25 19:26:16 +00:00
skodak
7d1df3a49d moodle specific developer debug messages disabled in admin/dbperformance.php page, because they might interfere with frames 2006-09-25 19:05:04 +00:00
skodak
fa323030fa XMLDB editor now has admin-tree block 2006-09-25 18:29:50 +00:00
stronk7
812e363a39 Now generators support to add/drop column defaults 2006-09-25 18:22:06 +00:00
skodak
c0a1aae3e2 admin/upgradesettings.php is now proper hidden external page with correct breadcrums ;-) 2006-09-25 18:21:59 +00:00
stronk7
aa134ecf17 Now the tests are performed with real data (2 records). Added 4
more tests to check compatibility of set/drop defaults...
2006-09-25 18:20:08 +00:00
sam_marshall
98a7359506 change from UNIQUE KEY to UNIQUE INDEX 2006-09-25 17:49:33 +00:00
sam_marshall
5cee80e183 (prev. wiki fix) Fixed broken constant defines 2006-09-25 17:47:35 +00:00
skodak
d249e478d4 fixed hidden misc sectionin admin tree block, sorry 2006-09-25 17:44:43 +00:00
sam_marshall
22e846cde2 Wiki enhancement: edit locking (uses AJAX) 2006-09-25 17:42:32 +00:00
danstowell
f775a510d6 Updated IMS Enterprise enrolment to Moodle 1.7 role infrastructure - MDL-6656 2006-09-25 17:21:07 +00:00
danstowell
26ba09125b Updated IMS Enterprise enrolment to Moodle 1.7 role infrastructure 2006-09-25 16:58:06 +00:00
sam_marshall
4488daf7ad File had a UTF-8 BOM at the start, was causing problems, now removed 2006-09-25 14:59:21 +00:00
jamiesensei
1629424dbb added styles_form to $DEFAULT_SHEET_LIST part of the code necessary so that every theme loads styles_form 2006-09-25 14:56:45 +00:00
moodler
a06c8c2cd1 Fixed some width="*" in layout tables 2006-09-25 14:40:26 +00:00
sam_marshall
479eea4149 Removed trailing blank line at end of file (was breaking things) 2006-09-25 14:35:41 +00:00
moodler
1beed35f71 Added some form-groups on the htmleditor page 2006-09-25 14:34:33 +00:00
moodler
fc52aa6e14 Cleaning up the id and class for each setting 2006-09-25 14:18:16 +00:00
skodak
499c621417 fixed quoting error 2006-09-25 14:15:55 +00:00
skodak
a69be0d861 improved handling of resource file/directory references when renaming and deleting files in file manager. It is now fully configurable too. MDL-6132 2006-09-25 14:12:46 +00:00
vyshane
7c900d5d62 Changed to require_capability where possible 2006-09-25 13:14:50 +00:00
moodler
86328d5821 Added strings for Trusted Content 2006-09-25 13:14:40 +00:00
vyshane
7fa8296f01 Bug fixes 2006-09-25 13:05:18 +00:00
moodler
2e0c11dda3 Fixed display of times in admin settings using form-group 2006-09-25 12:48:07 +00:00
urs_hunkler
74bd2abd78 'added CSS for admin pages' 2006-09-25 11:59:00 +00:00
urs_hunkler
26620ae2d0 'separated CSS properties to color/fonts/layout/' 2006-09-25 11:56:45 +00:00
sam_marshall
20e1b1e5c0 Quick fix to the me() fix to the redirect function (for relative redirects). 2006-09-25 11:23:15 +00:00
urs_hunkler
30b14256e6 'added general settings for items within .form-groups to display:inline and float:none' 2006-09-25 11:22:36 +00:00