Commit graph

3353 commits

Author SHA1 Message Date
moodler
2e85fffeb1 FIxed some typos and other logic related to assign_capabilities 2006-09-12 07:07:30 +00:00
vyshane
93b7e8d3a7 Fake constructor for PHP5 2006-09-12 06:58:42 +00:00
vyshane
23973f1856 Modified to support Roles. 2006-09-12 06:57:05 +00:00
moodler
e7876c1e34 Added new load_guest_role() for guest access, and made assign_capability()
smarter about pre-existing capabilities (new param allows overwriting or not)
2006-09-12 06:15:33 +00:00
toyomoyo
b277dd0a53 adding new table for keeping track of user's last access time for any course page 2006-09-12 06:08:57 +00:00
moodler
00adf177ad Changed some default permissions for the guest role 2006-09-12 05:58:42 +00:00
skodak
6ec7ca0f07 fixed handling of selected language in installer; fixed selection of session language 2006-09-11 20:41:49 +00:00
skodak
2b156ffbf3 old admin block not added into frontpage during installation anymore, it is not removed during upgrade. 2006-09-11 20:05:31 +00:00
toyomoyo
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
moodler
4ae6d4115f New hook for Moodle 1.7 enrolment plugins 2006-09-11 07:09:41 +00:00
skodak
3435f39bab validate local redirection actions in jumpto.php SC#310 2006-09-11 06:47:38 +00:00
vinkmar
c235598d6a Added feature from MDL-6439. A validate method is now supported for admin_configtext objects, and paramtype can now be a regex to validate against. 2006-09-11 05:06:38 +00:00
skodak
aa893d6b76 fixed several bogus errors and warnings during installation and upgrades, forced logout when upgrading from 1.6 2006-09-10 21:10:48 +00:00
stronk7
2ebd596764 Avoid one minor error when tables hasn't comments to be defined. 2006-09-10 21:05:55 +00:00
skodak
e46c09873a fixed warning during initial install when creating admin roles 2006-09-10 20:29:44 +00:00
stronk7
83a78d9d17 PHPDoc update. 2006-09-10 18:37:57 +00:00
stronk7
b8359f7965 Adding options for continue and feedback to all the DDL functions. 2006-09-10 18:36:50 +00:00
moodler
613bbd7c2b Moving deprecated functions out of datalib.php
Many of these still need updating to remove all dependence on user_xxx tables
2006-09-10 07:07:52 +00:00
stronk7
d6745c7087 Now we are using the new sql_order_by_text() function
when we need to be able to order by TEXT columns in a
cross-db behaviour. More info:
http://docs.moodle.org/en/XMLDB_Problems#ORDER_BY_text_columns
2006-09-09 13:53:52 +00:00
stronk7
5f45d2ae80 New function sql_order_by_text() to automatically build
custom expresions to being used in ORDER BY clauses with
TEXT columns.
2006-09-09 13:51:40 +00:00
stronk7
ccfc5ecca1 Only send contexts to cache if the aren't empty. At initial installations
some empty contexts were being cached and used later, causing insertion
of null values to every DB but MySQL.
2006-09-08 19:28:03 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
vyshane
46943f7b78 Seems that the unassign_capability function signature was changed without updating the call to that function in capabilities_cleanup(). Fixed. 2006-09-08 02:33:02 +00:00
stronk7
e20d180c11 DIRTY HACK to convert back all the ' ' (1 space) field contents
back to '' (empty string) in order to allow Oracle to work, more
or less until all the not real NOT NULL DEFAULT '' fields were out!

TODO: Apply the same hack to some more functions...
2006-09-07 23:48:48 +00:00
stronk7
42ac3ecffc Solving one string concatenation typo (please, test it's ok) and
stripping the AS keyword from table aliases. You cand find more at:
http://docs.moodle.org/en/XMLDB_Problems#Table_and_column_aliases_-_the_AS_keyword
2006-09-07 20:17:46 +00:00
skodak
42d6be31d1 double redirect prevention - if both 'meta http-equiv' and javascript redirects are used, javascript delay is 3 seconds longer to prevent accidental double redirects. The target page can still be loaded twice in case user clicks the link before the target page gets fully loaded. 2006-09-07 19:40:57 +00:00
stronk7
3a8c55c3fb Typos + drop table fully supported. 2006-09-07 18:39:43 +00:00
stronk7
8830218f53 Initial support for DROP TABLE adedd. 2006-09-07 17:28:46 +00:00
nfreear
22a3b7ccef Fixes bug MDL-6478 "Unit tests (not) working.." 2006-09-07 09:11:55 +00:00
toyomoyo
ec7a8b7999 adding capabilities 2006-09-07 08:57:56 +00:00
moodler
f43ce1ad1d Added moodle/role:unassignself which replaces $CFG->allowunenroll 2006-09-07 08:35:30 +00:00
stronk7
05a43ba36c Initial RenameTable caller to generators. Not ended by I needed it in CVS now. 2006-09-06 23:05:12 +00:00
stronk7
d05babe913 Initial, unfinished, not working, simple version of rename_table generator.
More coming soon, but I needed it in CVS now!
2006-09-06 23:04:13 +00:00
stronk7
aed4e52713 Now indexes are able to return their PHP specs. 2006-09-06 19:47:50 +00:00
stronk7
989a41af6f Now keys are able to return their PHP specs. 2006-09-06 19:43:38 +00:00
stronk7
7b31a94e08 Now fields are able to return their PHP specs. 2006-09-06 19:31:03 +00:00
toyomoyo
d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
moodler
d4649c76cc Removed some tabs 2006-09-06 01:43:54 +00:00
skodak
c3768dfc70 testing forced conversion to proper numeric type in _adodb_column_sql() SC#259 2006-09-05 23:59:25 +00:00
stronk7
3c4f35e645 Mark as deprecated the sql_paging_limit_function() 2006-09-05 21:42:20 +00:00
stronk7
93a89227fd One less use of old LIMIT clause. Now logs are working properly. 2006-09-05 21:40:17 +00:00
skodak
dbe7e58274 I spent 2 hours looking for this typo :-D 2006-09-05 20:45:57 +00:00
stronk7
5de6e614d4 No need to specify DISTINCT because u.* guarantees unique ids.
Also, DISTINCT clauses cannot be used with TEXT/BINARY columns
on MSSQL and Oracle.
2006-09-05 19:04:33 +00:00
stronk7
405bc45cf6 No need to specify DISTINCT because u.* guaranties distinct by id. 2006-09-05 19:01:41 +00:00
stronk7
0441764040 Changed the get_users_by_capability() function to work with
1.7 DB compatible limit sentences.
2006-09-05 18:55:16 +00:00
stronk7
3c242a66f5 Now get_records_sql() supports limitfrom and limitnum.
Required to kill all those hardcoded LIMIT x,y clauses.
2006-09-05 18:53:08 +00:00
stronk7
e4697bf7dc Both Oracle and MSSQL don't like double quotes for literals. 2006-09-05 18:06:53 +00:00
stronk7
415280bfc3 Added the adodb_logsql table to the XMLDB schema. It's a bit
exceptional because it hasn't prefix and originaly it hasn't
any PK, although we have added it here to be more Moodle-like.
Tested and seems to work properly with the new field.
2006-09-05 17:20:24 +00:00
stronk7
2e2a396ca3 Added to the generators the ability of prevent adding prefix for some tables.
(needed by adodb_logsql)
2006-09-05 17:17:49 +00:00
stronk7
ea7f147ef5 Now the sessions2 table is UTF8 migrated ok. 2006-09-05 16:04:50 +00:00