22428 Commits

Author SHA1 Message Date
skodak
2c1f712c16 file delete and rename warnings polished 2006-09-26 06:29:04 +00:00
toyomoyo
912c1fd5a2 correct xml parsing for mod level assignment and override 2006-09-26 06:02:10 +00:00
martinlanghoff
c4121640be user: remove deprecated sql_paging_limit(), use offset, limit parameters 2006-09-26 05:11:50 +00:00
martinlanghoff
ea9a729f80 mod/lesson, mod/quiz: remove deprecated sql_paging_limit(), use offset, limit parameters 2006-09-26 05:11:29 +00:00
martinlanghoff
1ad5c6380f mod/quiz: remove deprecated sql_paging_limit(), use offset, limit parameters 2006-09-26 05:11:05 +00:00
martinlanghoff
1e7368e782 dmlib: set_field() now has the Oracle DIRTY HACK too! 2006-09-26 05:10:39 +00:00
martinlanghoff
5a55af6097 dmlib: Add Oracle dirty hack cleanup to recordset_to_menu() get_field_sql() and get_fieldset_sql()
This covers most (all?) the gaps in data retrieval except get_recordset_sql().

To tackle get_recordset_sql,  where the actual data retrieval is done within
AdoDB, we would have to to wrap around AdoDB with a subclass, but that would
be dirty, dirty, dirtier.
2006-09-26 05:10:18 +00:00
martinlanghoff
44f9885044 sql_concat(): fixed param order thinko -- and now it works too! 2006-09-26 05:09:48 +00:00
martinlanghoff
b4dd303a97 search: removed dbtype-specific select - MySQL can now handle grownup syntax 2006-09-26 05:09:26 +00:00
martinlanghoff
47dc28e53c search: fixed mysql-isms - tablenames without prefix and with backticks 2006-09-26 05:09:01 +00:00
martinlanghoff
7e034f29a0 searchlib can use sql_ilike too! 2006-09-26 05:08:39 +00:00
martinlanghoff
a8f4522dfa data, forum, glossary: use sql_ilike() for a portable LIKE operator 2006-09-26 05:08:18 +00:00
martinlanghoff
95008f81c6 sql_ilike() -- added notes on Oracle support or lack thereof 2006-09-26 05:07:28 +00:00
martinlanghoff
6eb7722f93 message/lib.php: use sql_ilike() 2006-09-26 05:07:05 +00:00
martinlanghoff
d2715c70b6 mod/glossary, mod/hotpot: use sql_concat() and sql_concat_join()
Cleaned up several dbtype conditionals too.
2006-09-26 05:06:44 +00:00
martinlanghoff
38e02f4c32 Introducing sql_concat_join($sep, $array) helper
returns the SQL to do the equivalente of a join() or implode()
on the DB server. Watch the RDBMS work! ;-)
2006-09-26 05:05:54 +00:00
martinlanghoff
92a2d92a82 message_history_link() - replace use sql_concat() and sql_like() 2006-09-26 05:05:32 +00:00
martinlanghoff
27176468fe mod/quiz: replace $db->Concat() with sql_concat() 2006-09-26 05:05:10 +00:00
martinlanghoff
ea59864f45 course/lib.php: remove unused global 2006-09-26 05:04:40 +00:00
martinlanghoff
4068bedb83 Use sql_concat() in course/lib.php 2006-09-26 05:03:46 +00:00
martinlanghoff
0ce96669c9 Introducing sql_concat() - and use it in sql_fullname()
sql_concat() is just a passthrough to $db->Concat() -- it doesn't
add any value, and I think the dispatching is somewhat expensive.

Just using $db->Concat() should be good enough, were it not for
consistency in our DM API.
2006-09-26 05:02:59 +00:00
mjollnir_
6e58026b29 recredited the sql_primary_role_subselect function to correct author (much as I would like to claim it) 2006-09-26 04:41:45 +00:00
moodler
74b345880d Changing error to notify so that it's not fatal (and doesn't leak server data) 2006-09-26 04:38:00 +00:00
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