488 Commits

Author SHA1 Message Date
Petr Skoda
f44b10ed93 MDL-21139 replace all yui functions/methods with yui2 to make room for yui3 2009-12-16 20:25:14 +00:00
Petr Skoda
78946b9bdb 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 2009-12-16 18:00:58 +00:00
Penny Leach
24ba58ee9a 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.
2009-12-12 11:27:07 +00:00
Sam Hemelryk
89b8211e5a chat MDL-19804 Fixed deprecated event calls 2009-12-07 06:04:53 +00:00
Dongsheng Cai
2367795674 "MDL-20587, chat module, show sessions with just one users, based on Daniel Neis' patch, thanks" 2009-12-04 03:57:48 +00:00
Penny Leach
59dd457e4b 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
2009-12-03 14:26:37 +00:00
Sam Marshall
f1035deb97 MDL-21009 Group selector must use absolute links in order to work with javascript off 2009-11-30 17:12:48 +00:00
Petr Skoda
0ac940b3bf MDL-20712 using just $capablities for capability definition array, all other files in db/* do not use component names in definition array; old capability array names are of course supported 2009-11-04 19:24:12 +00:00
Petr Skoda
e7521559ed MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 13:17:47 +00:00
samhemelryk
d32229555f chat MDL-19804 Upgraded deprecated calls 2009-10-16 03:19:32 +00:00
dongsheng
75d07096d3 "MDL-14651, improved chat module interface" 2009-10-08 06:37:00 +00:00
samhemelryk
eb588b22ab mod-chat MDL-19804 Added PAGE->set_url calls and removed deprecated functions 2009-09-23 07:08:43 +00:00
samhemelryk
0eaf2f249d chat MDL-16673 Clean up inline script and output calls 2009-09-17 06:17:05 +00:00
samhemelryk
b14ae498b9 mod-chat MDL-20243 Upgrade chat module to make use of the two navigation callbacks
Note: I also took the oppertunity to extend navigation_node action handling, so that navigation nodes can accepts
moodle_url, html_link, or strings for actions
2009-09-10 03:50:51 +00:00
samhemelryk
889f591cf0 chat MDL-19804 Fixed regression caused by page general type
Changed general type to embedded so blocks, header, and footer are not shown in chat user frame
2009-09-08 03:39:50 +00:00
samhemelryk
296b589efd mod-chat MDL-19804 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 04:08:56 +00:00
dongsheng
ff0e58c8ae "MDL-14651, fixed chat_format_userlist" 2009-09-07 02:20:42 +00:00
dongsheng
4aa9147a5e "MDL-14651, fixed duplicate users in list, add language string" 2009-09-06 09:24:57 +00:00
dongsheng
9d9da5e9cb "MDL-8224, use embedded layout in gui_header_js UI, add a css to gui_basic UI" 2009-09-05 18:46:02 +00:00
dongsheng
83064f9c24 "MDL-14651, improve ajax chat module" 2009-09-05 18:41:25 +00:00
dongsheng
d8e761eed2 "MDL-14651, fixed typo and set page type as form" 2009-09-04 09:50:46 +00:00
nicolasconnault
2edd2d9bf1 MDL-19804 Upgraded calls to link_to_popup_window() 2009-08-20 13:15:57 +00:00
nicolasconnault
af7bad7997 MDL-19804 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:42:59 +00:00
nicolasconnault
29cd201ffa MDL-19804 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:02:38 +00:00
dongsheng
e8041d2c0d "MDL-14651, update chat module to work in new API" 2009-08-15 11:20:35 +00:00
nicolasconnault
c15fa88fb8 MDL-19804 Converted print_box* to $OUTPUT->box* 2009-08-10 04:58:40 +00:00
nicolasconnault
d8772689b2 MDL-19804 Converted all print_footer() calls 2009-08-06 14:15:30 +00:00
nicolasconnault
b2dc6880e4 MDL-19806 Migrated calls to print_heading 2009-08-06 08:21:01 +00:00
nicolasconnault
e09fc68ba7 MDL-19804 Upgraded calls to print_headline 2009-08-06 01:37:33 +00:00
tjhunt
d1dd5d030f chat: Remove unnecessary call-time pass by reference. 2009-07-24 09:16:09 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
tjhunt
c8873c496b MDL-19690 - eliminate the $OUTPUT->initialise_deprecated_cfg_pixpath horrible hack.
Replace $CFG->pixpath with $OUPTUT->old_icon_url(...) instead.
2009-07-02 11:23:47 +00:00
samhemelryk
ddbeb7a7ec chat ajax MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:00:59 +00:00
stronk7
ce40c8ff2b MDL-19579 code coverage - add more initial $includecoverage attributes 2009-06-26 18:12:05 +00:00
samhemelryk
0763ab2c65 mod-chat MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 06:53:23 +00:00
samhemelryk
8ab94a36fe mod-chat MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 05:55:55 +00:00
samhemelryk
30972c2bac mod-chat MDL-16706 Removed inline JS and replaced with new PAGE methods
Removed print_header $meta at same time as no longer used
2009-06-26 05:49:33 +00:00
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +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
skodak
a8c31db2a3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:47:18 +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
skodak
7826abc79f MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:25:27 +00:00
stronk7
3e17976332 MDL-19350 upgrade blocks - fixing minor bits in modules 2009-06-03 17:01:51 +00:00
dongsheng
cc852a0a8d "MDL-14651, fixed yui javascript path (since latest yui upgrade), setup in update script in order to get format_text worked" 2009-06-02 05:24:24 +00:00
samhemelryk
b2d5a79a35 mod MDL-19294 Corrected package tags to docs spec 2009-05-27 05:33:12 +00:00
samhemelryk
848bb1134b chat lib MDL-19294 Boilerplate and Phpdocs 2009-05-27 02:40:00 +00:00
skodak
aa282b10fb MDL-15249 $_SERVER['HTTP_HOST'] not availabel in CLI script, replaced by parsing of wwwroot which should give the same info 2009-05-25 20:55:27 +00:00
tjhunt
b7b2d0f37d moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +00:00
tjhunt
c85acc871f pagelib: MDL-12212 eliminate chat_page 2009-05-06 09:25:54 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00