moodler
eba88175b6
Formatting fixes
2006-08-24 03:37:41 +00:00
moodler
0a0bb38019
Ed Coyne's AJAX course format, with some cleanups done.
...
More cleanups to come from Ed.
This isn't actually working for me right now but he'll fix it now.
This is completely optional and won't affect any other code right now.
2006-08-24 03:20:37 +00:00
tjhunt
c82f76d050
MDL-4816 Short answer question type considers '100' and '100.' to be the same
Actually, this may have affected other question types too.
2006-08-23 21:17:23 +00:00
toyomoyo
5769734f2a
changing default override values
2006-08-23 08:14:14 +00:00
toyomoyo
945f88ca15
various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib
2006-08-23 06:36:08 +00:00
moodler
d9a35e1270
Fixed context caching (wasn't using globals)
2006-08-23 01:29:52 +00:00
skodak
a2b0c57b0a
debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294; merged from MOODLE_16_STABLE
2006-08-22 22:25:30 +00:00
stronk7
860b55463f
Normalizing a bit all the float/double generators.
2006-08-22 22:10:09 +00:00
stronk7
598dc3a99c
Change rule to tzrule (reserved word)
2006-08-22 21:19:52 +00:00
stronk7
7970cce9f4
Updated using tzdata2006j
2006-08-22 20:11:33 +00:00
stronk7
c0fe3453ef
Change rule to tzrule (reserved word)
2006-08-22 20:10:54 +00:00
stronk7
2efaf3f8ab
One trick to allow pseudo-null Oracle insertions. Let's see what happen.
2006-08-22 16:39:14 +00:00
tjhunt
75e84883ca
Unbreak roles and permission on Postgres yet again.
...
If you want a laugh, compare this fix the with the diff between revisions 1.5 and 1.6 of this file.
2006-08-22 16:18:11 +00:00
stronk7
93d2c55ffc
Standard naming now user FOUR char for tables (to avoid
...
avoid some potential duplicates)
2006-08-22 16:15:44 +00:00
toyomoyo
5cf38a57cd
some quiz capabilities
2006-08-22 09:04:23 +00:00
stronk7
28f6c41d45
Changed level (reserved word) to aggregatelevel.
2006-08-21 14:59:48 +00:00
stronk7
88534572c3
Reducing the list of MSSQL reserved words to the efectively
...
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by MSSQL)
2006-08-21 12:28:46 +00:00
stronk7
c8f85eeeba
Reducing the list of PG reserved words to the efectively
...
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by PG)
2006-08-21 12:04:48 +00:00
skodak
efc7316caa
import of ADODB v4.91 and general cleanup, removed some unused files - see readme_moodle.txt; new session2 code needs a new table, I am going to use the new database functions for that later, for now we are using the old table and old database session code.
2006-08-21 06:54:00 +00:00
toyomoyo
d140ad3f7c
fix for bug #6307 , reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks
2006-08-21 05:19:16 +00:00
toyomoyo
d37bac7e5d
fix for 6294
2006-08-21 02:23:25 +00:00
stronk7
0513f3bfa5
$statement_end for Oracle changed to "/" because standard ;
...
causes problems with trigger generation
2006-08-20 21:56:54 +00:00
stronk7
73bb7f8db0
Setting some ADOdb variables properly and calling to the new
...
configure_dbconnection() function to set DB encoding and other
preliminar settings.
2006-08-20 18:22:48 +00:00
stronk7
d086d854a8
Added the configure_dbconnection() function to be executed
...
after DB conection. Responsible to set a lot of things
(charsets, dbsession variables...)
2006-08-20 18:21:33 +00:00
stronk7
f9543de627
Since PostgreSQL 7.4 the precision given for float columsn is
...
the number of bits to use, and not the number of decimals. So,
based on the number of decimals from the XMLDB schema, we are
going to create REAL (<6 decimals) or DOUBLE PRECISION (>=6) columns.
2006-08-20 18:19:50 +00:00
stronk7
16f07ff2b0
MySQL doesn't like any name on its primary keys (neither "primary")
2006-08-20 18:03:55 +00:00
stronk7
c412278140
Although difficult, now all the key/index/sequence/trigger names
...
are quoted if they are reserved words
2006-08-20 18:01:50 +00:00
stronk7
134e3128bb
Added the install_from_xmldb_file() function that
...
loads, transform and execute one entire XMLDB
file into the correct SQL sentences.
2006-08-20 15:50:27 +00:00
stronk7
293bccd539
First commit for the progressive adoption of ADODB's SelectLimit() function
...
in order to support LIMIT clauses in a cross-db compatible way.
Changes don't affect old sentences at all (all them would be changed soon too).
2006-08-20 09:37:56 +00:00
moodler
c06140513d
Fixed up get_user_roles to remove notices
2006-08-19 08:12:45 +00:00
tjhunt
707b5c9953
Renamed unit tests to match Eloy's work.
2006-08-19 07:47:41 +00:00
moodler
9f948d1136
Just minor doc tweaks
2006-08-19 02:58:07 +00:00
stronk7
465a802937
Thought this was commited. Solve one bug in trigger generation
2006-08-19 00:58:30 +00:00
stronk7
7e13be0887
Splitting datalib.php in three libraries:
...
- ddllib.php: Where all the DDL (install/upgrade) functions will be.
- dmllib.php: Where all the DML (select...) functions will be.
- datalib.php: Legacy lib. Its contents should go to other libraries soon.
For more info see: http://docs.moodle.org/en/XMLDB_Roadmap (point 1)
2006-08-18 22:56:08 +00:00
tjhunt
ef82286874
Bug #6293 - Cannot regrade a question when a teacher has added a comment with a ' - Merged from MOODLE_16_STABLE.
Stupid, wreched, datalib.
Why can't datalib take care of addslashes, so the whole of the rest of the code can forget about it? That is how a database abstraction layer should work.
I know, it is pointless to moan about it, but it has just cost me 3 hours, so I feel I have earned the right to moan.
2006-08-18 22:34:54 +00:00
tjhunt
865b753486
Code cleanup. Merged from MOODLE_16_STABLE.
2006-08-18 22:26:04 +00:00
tjhunt
5553c2ec47
New function record_exists_select with unit tests for all the record_exists_* functions.
2006-08-18 11:28:30 +00:00
moodler
d100b8a04d
Make sure .htaccess is created in dataroot, just in case
2006-08-18 09:54:09 +00:00
tjhunt
1780811d55
Added todo.
2006-08-18 08:14:47 +00:00
toyomoyo
68c5252623
adding functions and interface for access control - role assignment and role overrides
2006-08-18 08:01:16 +00:00
vinkmar
f8a511519b
admin page cleanup (google soc 2006)... updated field name for category editing function so that it doesn't conflict with 'edit' when used for blocks
2006-08-18 07:29:19 +00:00
skodak
408965376d
still more upgrade logging fixes
2006-08-18 00:01:37 +00:00
skodak
26c91c7394
major upgrade logging speed improvement - write buffer implemented
2006-08-17 23:50:18 +00:00
skodak
7949356d64
fixed missing '}'
2006-08-17 22:49:21 +00:00
skodak
dedb2304cd
upgrade logging cleanup, fixes - more improvements ahead
2006-08-17 22:37:34 +00:00
stronk7
1bf63d33c8
Oracle automatically builds UIXs for UKs
2006-08-17 19:40:49 +00:00
stronk7
9dcc6300a7
Now all the XMLDBxxx->geSQL functions return an array of statements to be
...
executed (easily to handle them in the installation/upgrade process
individually. Also, it's possible to specify one statement end.
2006-08-17 19:20:45 +00:00
stronk7
de16da7293
adding role_allow_assign , role_allow_override table and dropping role_deny_grant
...
NOTE: Need to confirm that both these fields:
role_allow_assign->allowassign and
role_allow_override->allowoverride
are pointing to role->id (this is the assumption I've done, so I've
created them as FKs)
2006-08-17 19:16:07 +00:00
stronk7
46d42a3cc5
Now ddllib includes all the required xmldb stuff
2006-08-17 16:59:14 +00:00
tjhunt
cfa27f4472
Fix bug in new function get_field_select(), and this time add a unittest to see if the new function works!
2006-08-17 16:28:29 +00:00