Petr Skoda [Wed, 16 Dec 2009 18:00:58 +0000 (18:00 +0000)]
MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks
Sam Hemelryk [Wed, 16 Dec 2009 02:00:48 +0000 (02:00 +0000)]
mod-lesson MDL-21006 Huge refactoring of the lesson code
The following are notable changes made in this commit
* Lesson page type are now class based and extend an abstract class. This includes a class for the page type and a class for the creating/editing a instance of this page.
* Converted all forms to mforms
* Action script located in mod/action/* were worked into the above so far less switch statements and the action directory will be removed.
* Implements a custom renderer
* Converted everything to use page, output, and custom renderer methods
* Replaced all deprecated methods incl. print_textarea conversions
* Tried to cut down on excessive DB calls.
Things worth noting:
* The focus of this patch was on cleaning up the module not rewriting it, as such I have organized NOT rewritten. There are still many areas in the module where the code could be greatly improved however to do so would require a rethink/rewrite
Penny Leach [Tue, 15 Dec 2009 12:36:49 +0000 (12:36 +0000)]
portfolio MDL-20896 added the ability to set mime info for "intended" files
This means for places in Moodle that are going to write a file, like a
CSV file, they can set the intended mimetype of the generated file.
Previously you had to use a stored_file object.
This also gets rid of portfolio_fake_add_url function and replaces the
data module implementation with a button. I also refactored
portfolio_add_button::to_html to use moodle_url so it's easy to return
the same parameters to hidden form fields, an escaped url (for a link),
and a non escaped url (to redirect to, which is what the data module
does)
Penny Leach [Sat, 12 Dec 2009 11:27:07 +0000 (11:27 +0000)]
portfolio MDL-21079 be more selective about including libraries.
this involves moving all formslib includes to where they're actually needed.
it also moves the portfolio stuff from assignment,data,chat,forum and glossary
into a locallib.php which involved creating it for many of those modules.
Sam Hemelryk [Thu, 10 Dec 2009 02:11:28 +0000 (02:11 +0000)]
mod-forum MDL-17550 Converted subscribers.php to use the new user_selector control
At the same time I also converted weblib.php::check_theme_arrows to use UTF8 arrows rather than entities.
Gordon Bateson [Tue, 8 Dec 2009 04:13:20 +0000 (04:13 +0000)]
MDL-20810: add missing function hotpot_charcode_to_utf8() required when importing Hot Potatoes files containing non-ascii chars into Moodle question bank
Penny Leach [Thu, 3 Dec 2009 14:26:37 +0000 (14:26 +0000)]
portfolio: MDL-21030 - leap2a portfolio format support.
This commit includes:
- leap2a portfolio format, and xml writer
- proof of concept implementation in forum and assignment modules
- a lot of refactoring of the portfolio formats in general:
- addition of "abstract" formats - this is necessary for plugins to be able to support groups of formats
- addition of the idea of portfolio formats conflicting with eachother - eg richhtml & plainhtml
it touches modules other than assignment and forum, because the format api
changed and now each place in moodle that exports portfolio content has to deal
with the formats it supports slightly differently.
At the moment the Mahara portfolio still doesn't support this format, because I
haven't done the Mahara side yet. The "file download" plugin supports it
though.
Still todo:
- Add support for the other places in Moodle (glossary, data, etc)
- Write tests, once the rest of the portfolio tests have been updated to use the new DB mocking stuff
- Fix a bunch of TODOs
flash upgrader MDL-20841 New config setting excludeoldflashclients will set a minimum version for flash clients. A check in the standard_head_html is run once, and will set a session variable with the current flash version. If the current flash version is lower than the minimum requirement, then Moodle will serve alternate content whenever a flash file is requested. The alternate file will ask the user to upgrade flash, merged from 1.9