Commit graph

8079 commits

Author SHA1 Message Date
skodak
69429650c4 MDL-19211, MDL-19544 improved editor embedding, media and dragmath enabled only when moodle configuration and current user permissions allow it to work 100% 2009-06-20 11:00:40 +00:00
skodak
a262db825d MDL-19516 dragmath embedding improvements by Mauno Korpelainen 2009-06-19 14:35:46 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
tjhunt
5085a59ad7 javascript: MDL-16695 print_footer('empty'); I had the wrong type of quotes.
Thanks to Dongsheng for noticing.
2009-06-19 08:02:11 +00:00
skodak
8754882493 MDL-19528 new dragmath icon by Mauno Korpelainen 2009-06-18 17:23:47 +00:00
tjhunt
571fa82824 themes: MDL-19077 implement the renderer_factory instrastructure.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

The concept is that all the print_... functions in weblib get replaced  by methods
on a moodle_core_renderer class. Then, the theme can choose whether to
use the standard moodle_core_renderer class, or another implemenatation of
its own choosing, to generate different HTML.

Also, becuase Moodle is modular, we may need a moodle_mod_forum_renderer
and so on.

In order for the theme to be able to choose which renderers get created, we
introduce the concept  of a renderer factory, as in the factory design pattern.
The theme will choose which factory should be used, and that then creates
the renderer objects based on the module name.

This commit includes 4 types of factory:
* standard_renderer_factory
* custom_corners_renderer_factory
* theme_overridden_renderer_factory
* template_renderer_factory

All this with unit tests and PHP doc comments.

Note, this new code is not actually used yet. Still todo:
1. actually define the moodle_core_renderer class, and deprecate a lot of weblib functions.
2. make theme_setup initialise everything, so it is used.
2009-06-18 10:43:13 +00:00
dongsheng
e78e71fd61 "MDL-16698, use non-js filepicker to pick up files" 2009-06-18 06:52:26 +00:00
dongsheng
ab9cdbb976 "MDL-17316, fix upload form in non-js file picker" 2009-06-18 06:31:51 +00:00
tjhunt
a978bddea3 javascript: MDL-16695 print_footer('empty'); was not printing the necessary end of page code. 2009-06-17 10:29:42 +00:00
moodler
b03fc39253 Just some whitespace fixes 2009-06-17 08:50:16 +00:00
tjhunt
32941d74c8 Move extra ajaxlib unit tests to the right place. 2009-06-17 07:35:33 +00:00
tjhunt
1ee9d0d764 Fix boilerplate. 2009-06-17 07:32:18 +00:00
tjhunt
8a0cb3a16d Javadoc comment syntax. 2009-06-17 05:34:10 +00:00
stronk7
f59309921b MDL-19465 accesslib - improve get_user_access_sitewide() performance (~10%) 2009-06-16 15:34:55 +00:00
tjhunt
52902cea23 blocks upgrade: MDL-19511 And repeat the upgrade step, since some poeple will have missed it. 2009-06-16 10:31:33 +00:00
skodak
aeb0f2135e MDL-19526 fixed inserting of < and > 2009-06-16 10:28:56 +00:00
tjhunt
a26146d563 blocks upgrade: MDL-19511 put back important code that Petr commented out!
The actual mistake was the name of the previous column, which is totally irrelevant, but which XMLDB had filled in incorrectly. Grrr!
2009-06-16 10:23:56 +00:00
skodak
e3d84fb05d MDL-19522 dragmath plugin now fully supports localization 2009-06-16 10:23:27 +00:00
skodak
27c718a90e MDL-19523 dragmath embedding xhtml fixed 2009-06-16 08:54:01 +00:00
skodak
170b4f9b68 MDL-19523 dragmath embedding xhtml fixed 2009-06-16 08:53:37 +00:00
skodak
bd479c7c0f MDL-19520 upgrading to latest dragmath, thanks Marc Grober for new version notification 2009-06-16 08:44:50 +00:00
skodak
ae388c4537 MDL-19211 adding forgotten dragmath in legacy editors 2009-06-16 08:00:53 +00:00
tjhunt
25ddb7efc9 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
This is the final batch.
2009-06-15 07:57:53 +00:00
fmarier
3e83641fdc MDL-2794 testweblib: adapt the unit tests to the output of new html2text library 2009-06-15 06:08:42 +00:00
tjhunt
c28bf5c9f8 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
Also, some related JavaScript cleanup.

More to follow.
2009-06-15 05:37:57 +00:00
dongsheng
424362f3b5 "MDL-16695, fixed yui js files path" 2009-06-15 05:06:34 +00:00
tjhunt
5c5418fe9d Further fixes to PHPdoc comments. 2009-06-15 04:03:59 +00:00
tjhunt
2c144fc308 Further fixes to PHPdoc comments. 2009-06-15 03:54:00 +00:00
tjhunt
9ca1395054 Try to improve formatting of PHPdoc. 2009-06-15 02:48:40 +00:00
skodak
13a220cfb8 MDL-19500 improved editor embedding 2009-06-14 21:35:07 +00:00
skodak
fe54764e04 MDL-19498 importing tinymce 3.2.4.1 2009-06-14 16:19:28 +00:00
skodak
95fa2e7e4b MDL-19498 testing keyword expansion changes in exported libs 2009-06-14 16:14:45 +00:00
skodak
fc29e51b2d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
skodak
a8f3a651c0 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:16:08 +00:00
skodak
bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
skodak
b8ac7ecec8 MDL-18293 removed obsoleted checking of return values from insert and update_record 2009-06-13 16:47:05 +00:00
skodak
44f27e4123 MDL-14990 pritning of backtrace does not rely on $CFG any more and can be used from destructors 2009-06-13 16:07:14 +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
eda26314d6 MDL-19474 adding TODO for removing of obsoleted adodb drivers before branching 2009-06-13 09:11:54 +00:00
skodak
bba506164d MDL-14679 fixing old TODOs 2009-06-13 09:09:30 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt
45caa363f0 Fix whitespace, and a minor problem, in javascript-static.
Also, new, more efficient, variant of the select all checkboxes function,
for when they are all in a container with an id.
2009-06-12 12:01:16 +00:00
tjhunt
c679c3582a Fix some fallout from the pagelib changes. 2009-06-12 11:56:30 +00:00
skodak
1fbdf76ddb MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions 2009-06-12 10:59:28 +00:00
tjhunt
a836d6d375 Fix whitespace. 2009-06-12 09:09:28 +00:00
skodak
8cc35d2055 MDL-14679 license header fixes 2009-06-12 08:50:50 +00:00
skodak
94b6329544 MDL-14679 license header fixes 2009-06-12 08:44:49 +00:00
skodak
5da75074c4 MDL-19470 adding missing inline docs 2009-06-12 08:27:19 +00:00