Commit graph

174 commits

Author SHA1 Message Date
Petr Skoda
0e6e90516a MDL-24028 cast all bools in DML params to integers 1/0; credit goes to Eloy Lafuente 2010-09-03 15:44:11 +00:00
Petr Skoda
915ee3f9df MDL-23925 completely reverting binary comparison hack, we have to instruct admins to setup case+accent sensitive collation as default instead 2010-08-25 11:18:37 +00:00
Petr Skoda
6055f89d30 MDL-23925, MDL-23888 new sql_ilike() and sql_binary_equal() - this should finally allow us to solve many collation issues consistently for all supported databases; please note this changes some behaviour for non-english languages when mysql used; expect more commits that actually make use of these new features 2010-08-24 21:50:53 +00:00
Petr Skoda
38ead57d34 MDL-14679 more phpdocs improvements - fixed param types 2010-08-22 19:32:37 +00:00
Petr Skoda
3d54726fd4 MDL-14679 more phpdocs improvements 2010-08-22 19:26:48 +00:00
Petr Skoda
9331d879eb MDL-14679 more return types added 2010-08-22 19:06:06 +00:00
Petr Skoda
f688db7d57 fixed comment typo 2010-08-22 19:01:09 +00:00
Petr Skoda
3503dcad31 MDL-14679 fixing more incorrect return types 2010-08-22 19:00:28 +00:00
Petr Skoda
5212b07f20 MDL-14679 fixing incorrect return type of recordset methods 2010-08-22 18:55:29 +00:00
Petr Skoda
d35ece6cce MDL-23682 new MySQL engine diagnostics + InnoDB is now used instead of MyISAM in new installs if available + improved mysql transaction support 2010-08-18 16:47:00 +00:00
Petr Skoda
66c0ee78a5 MDL-21249 fixed wrong package grrrrrr, thanks Eloy! 2010-07-25 20:18:39 +00:00
Petr Skoda
f2ed3f05a7 MDL-21249 improved php docs and adding direct access prevention in dml 2010-07-25 12:57:24 +00:00
Sam Marshall
b3f1efb553 dml NOBUG Corrected out of date phpdoc comment 2010-06-16 10:13:41 +00:00
Petr Skoda
862d54c314 fixed a large number of typos in comments :-( 2010-05-21 18:18:42 +00:00
Eloy Lafuente
10f375aa2e MDL-22076 temptables - warn and dropped on disposal 2010-04-21 16:12:27 +00:00
Eloy Lafuente
cd6d352396 NOBUG: Normalise generated param names so we can safely use sql_xxx() helper functions everywhere. 2010-03-22 18:06:59 +00:00
Eloy Lafuente
63b3d8abb4 MDL-21264 sql_isnotempty() fixed. Thanks Tim!
Added (and passed) a bunch of tests for that function.
2010-01-07 14:59:54 +00:00
Petr Skoda
07b81ebd2d MDL-20625 coding help - better detection of missing commit or rollback 2009-11-08 21:19:11 +00:00
Petr Skoda
d5a8d9aa71 MDL-20625 new delegated transaction support in DML 2009-11-07 08:52:56 +00:00
Eloy Lafuente
e3acc8af7a MDL-20734 normalise_value() - moving from private to protected everywhere and abstracting 2009-11-04 13:19:11 +00:00
stronk7
ab62bd23ff MDL-14679 tidy phpdocs for sql_substr() a bit 2009-10-09 10:02:39 +00:00
skodak
eb123debc6 MDL-19474 One year and a half ago we started designing and implementing our new databse abstraction layer which included brand new moodle native drivers. Today we are finally removing old legacy drivers that were still using adodb internally. From now on the adodb will be used only in some authentication and enrolment plugins, we are probably going to drop adodb there too later in 2.x. Thanks everybody who helped test and improve our new drivers, even bigger thanks to all the great developers who created ADOdb! 2009-10-08 22:34:34 +00:00
mudrd8mz
44f6ca9e11 MDL-20334 re-fix - small performance improvement
As Petr suggested, is_array() is faster than empty() so it makes sense
to check it first.
2009-09-22 21:18:29 +00:00
mudrd8mz
1336c8ebca MDL-20334 get_in_or_equal() does not accept empty array 2009-09-22 21:03:38 +00:00
stronk7
e4a16bdc88 Delegate prefix subtitution to each db driver to enforce calls to fix_sql_params() everywhere 2009-08-29 00:08:55 +00:00
skodak
2bad34a309 MDL-19689 fixed strictness constants, thanks Tim 2009-07-04 10:53:57 +00:00
skodak
e6c6531cce MDL-19689 fixed strictness constants, thanks Tim 2009-07-04 09:30:59 +00:00
skodak
af12ea93ba MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods 2009-07-03 22:38:56 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
skodak
b4154c2d64 MDL-14990 implemented query loggin in new native DML drivers 2009-06-13 15:59:55 +00:00
skodak
54d51f604e MDL-19470, MDL-14990 fixed db transactio nregression + towards query logging support 2009-06-13 10:16:29 +00:00
skodak
7900a54c30 MDL-14679 fixing old TODOs and adding more CLI support 2009-06-13 09:16:30 +00:00
skodak
1fbdf76ddb MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions 2009-06-12 10:59:28 +00:00
skodak
5da75074c4 MDL-19470 adding missing inline docs 2009-06-12 08:27:19 +00:00
skodak
4992614541 MDL-19470 fixing DML license headers 2009-06-12 08:14:29 +00:00
skodak
a1dda107bd MDL-19470 detection of nested transactions, only one level allowed 2009-06-12 07:55:44 +00:00
stronk7
8fdb24f079 MDL-14992 sessions - proper destructor method and fixed dispose() behaviour. 2009-05-26 14:46:01 +00:00
tjhunt
adff97c505 lib/dml: new compatibility method sql_cast_2signed for when MySQL thinks that 1 * -1 = 18446744073709551615 2009-04-10 09:33:26 +00:00
stronk7
7e0db2e205 MDL-18244 sql_length() - new cross-db function to calculate the length in chars of any expression ; from 19_STABLE 2009-02-15 23:17:56 +00:00
skodak
3b09331066 MDL-17458 rewritten installer 2009-02-07 10:20:33 +00:00
skodak
56949c17de MDL-14992 refactored use of session_write_close() 2009-01-17 15:25:08 +00:00
skodak
5e9dd01778 MDL-14992 pg session locking (8.2 and later only), refactoring and db session not default yet in new installs 2009-01-17 14:31:29 +00:00
skodak
3b1a9849bf MDL-14992 pg sessions advisory locks accept only integers :-( trying to find a workaround 2009-01-17 12:12:48 +00:00
skodak
7f79aaeaad MDL-14992 towards better db sessions - session locking for mysql 2009-01-16 23:02:24 +00:00
skodak
0a2092a307 MDL-14992 towards better db sessions 2009-01-16 17:27:36 +00:00
skodak
117679db37 MDL-17859 implemented caching in get_tables() 2009-01-12 18:10:50 +00:00
skodak
c643c2f513 MDL-17806 fixed sql_bit_and use which returns number and that is why it is not suitable for SQL conditions; thanks penny!
Fixed DML docs too.
2009-01-07 18:55:32 +00:00
stronk7
c362878ed7 MDL-17645 delete_records_list - Tidied a bit return values. Fix behaviour when no values are passed + new dml tests for all *_list() functions. 2008-12-15 21:41:09 +00:00
tjhunt
0e8e23cce6 dml: MDL-17645 New database method delete_records_list. 2008-12-15 02:13:11 +00:00
skodak
66e75f8d51 MDL-17491 experimental native oracle driver - still bugy and incomplete, this will require more core changes, grrrrrr 2008-12-05 00:10:27 +00:00