138 Commits

Author SHA1 Message Date
David Mudrak
30c8dd34f7 MDL-15252 Re-committing all English strings exported from AMOS
From now on, all English strings use the new syntax. They are not
eval()'ed any more and the only valid placeholders are {$a} and
{$a->foobar}. No extra quotes escaping, dollar sign escaping and putting
double percent signs.

The modified files were exported from AMOS database repository in the
new syntax and were re-ordered by stringid. Standard GNU/GPL and PHPdoc
blocks are added. Where there was no copyright note so far, I added the
default one with Martin Dougiamas as the copyright holder.

Live long and prosper.
2010-04-10 14:01:45 +00:00
Petr Skoda
3a915b0667 MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs 2010-04-10 07:24:56 +00:00
David Mudrak
c811222ff9 MDL-21694 Moving portfolio strings into plugin space 2010-03-29 20:37:00 +00:00
Penny Leach
155ce5005a portfolio MDL-21030 be more selective about the mahara continue url (depending on the export format) 2010-03-22 09:04:02 +00:00
Penny Leach
14e23787c0 portfolio/mnet/mahara MDL-15362 perform better mnet session handling 2010-03-21 17:20:36 +00:00
Penny Leach
3aa1d76573 portfolio/mahara MDL-21030 finally enable leap2a support 2010-03-21 17:20:25 +00:00
Penny Leach
67aec4423e portfolio MDL-21233 fixed a regression in the change to moodle_url 2010-02-26 15:30:59 +00:00
Penny Leach
677b6321af mnet MDL-21098 fixed quite a few issues in the mnet installer and testclient. Rebumped all plugin versions that use mnet to get the services reinstalled 2010-02-18 04:55:34 +00:00
Petr Skoda
593f9b8703 MDL-21400 finalising JS api - removing ->on_dom_ready (now bool param in js() and js_init_call()) and after_delay() (again int parameter) - the reason is it was adding unnecessary complexity and it is used in just a few places that will be eventually converted to the new js_init_call() anyway 2010-02-06 14:45:17 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Penny Leach
4196f8f73a mnet MDL-21473 bumping versions of mnet-enabled plugins again after fixing a mnet installer bug 2010-01-29 04:13:59 +00:00
Penny Leach
b740b3590f mnet MDL-21473 detect services we subscribe to, as well as publish at install/upgrade as well
and add upgrades for all mnet enabled plugins
2010-01-29 02:31:44 +00:00
Penny Leach
d23765c127 mnet MDL-21261 bumping version numbers of plugins that contain mnet definitions to get them installed properly 2010-01-28 20:24:53 +00:00
Penny Leach
d2ac37c1ab mnet MDL-21261 mnet overhaul - adding and removing files I missed in the last big commit 2010-01-28 20:17:12 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
3ba60ee16a MDL-21235 new single button rendering 2010-01-14 19:18:04 +00:00
Penny Leach
939ea0bc44 mnet MDL-21294 change errors to exceptions in mnet server 2010-01-13 01:08:38 +00:00
Petr Skoda
dc6896efe0 MDL-21198 used new simple_button class when doing OUTPUT->confirm() - more consistent and hopefully easier to remember than html_form::make_button() ;-) 2010-01-03 20:47:13 +00:00
Petr Skoda
4454447d56 MDL-20700 whitespace terror returns 2009-12-16 22:14:17 +00:00
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
Penny Leach
521a6ab04d 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)
2009-12-15 12:36:49 +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
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
Dan Poltawski
16f4918a16 portfolio: MDL-16417 Prevent multiple googledocs/picassa instances 2009-11-21 13:46:45 +00:00
Penny Leach
65909966e1 portfolio MDL-20905 updated box.net docs to explain new returnurl 2009-11-19 07:31:43 +00:00
Penny Leach
b12fbe8e4c portfolio MDL-20905 fixing errors that affected box.net plugin 2009-11-19 07:03:53 +00:00
Penny Leach
bd39808be8 portfolio MDL-19356 boxnet doesn't support multiple exports at the same time 2009-11-19 06:42:08 +00:00
Dan Poltawski
a9ec903149 portfolio: MDL-20897 Add additional format types
Added new specific formats for PDF, Document, Presentation and Spreadsheet

Allow the googledocs plugin to support all these formats
2009-11-18 17:33:19 +00:00
Penny Leach
8a709ecfc1 portfolio MDL-20639 mahara plugin: update to mnet requirements after stricter mnet dispatcher checking 2009-11-18 13:35:58 +00:00
Penny Leach
edf1fc350a portfolio: MDL-20892 moved portfolio/type/* plugins to portfolio/* 2009-11-18 13:27:38 +00:00
Penny Leach
5d0dbf130d portfolio MDL-20872 elegant handling of cleanup/display race condition
lots of work to elegantly resolve the issue between interactive browser
sessions and "pull" portfolio plugins that cause a race condition where we lose
the ability to display information to the user if the pull cleans up the export
first.  this also improves the portfolio transfer log display for later
2009-11-18 12:27:15 +00:00
Penny Leach
63d09fc5f6 portfolio MDL-19356 first cut at changing the two google plugins to not depend on session 2009-11-18 10:07:30 +00:00
Penny Leach
892234168e portfolio: MDL-19356 - mahara portfolio plugin: add sesskey to post-auth redirect 2009-11-18 10:06:34 +00:00
Penny Leach
c95a609597 Portfolio MDL-19356 removal of session reliance completely.
For plugins that don't support it, we can work around the external
redirect issue by returning to a special url.

This also adds on selective cancelling/continuing of current exports.

It needs a lot of testing, but seems to be working reasonably well.

Some plugins need updating now, however
2009-11-17 14:01:25 +00:00
Penny Leach
f1d2641df6 portfolio: MDL-20850 fixed some navigation/output 2009-11-17 14:01:06 +00:00
Penelope Leach
aa37986599 portfolio MDL-20850 adding $PAGE->set_url 2009-11-16 14:57:42 +00:00
Penelope Leach
0503e887e6 portfolio - MDL-20850 - updates to use $PAGE better 2009-11-16 14:55:38 +00:00
Penelope Leach
384ba38af4 portfolio - MDL-19356 - rename allows_multiple to allows_multiple_instances
this disambiguates, so we can have a function called allows_multiple_exports
2009-11-16 12:57:59 +00:00
Penelope Leach
557b2a3b81 portfolio - MDL-19356 - Mahara portfolio plugin: removed session use
since we can construct whatever return url we want.
2009-11-16 12:57:36 +00:00
Petr Skoda
4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
samhemelryk
92e8851f67 portfolio MDL-19819 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 07:29:07 +00:00
samhemelryk
de6d81e667 admin MDL-19799 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants 2009-09-03 06:59:25 +00:00
nicolasconnault
c108068f6e MDL-19819 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:48:55 +00:00
nicolasconnault
de2bd9df22 no message 2009-08-18 05:18:28 +00:00
nicolasconnault
e6e565ab20 MDL-19819 Converted all print_footer() calls 2009-08-06 14:09:50 +00:00
stronk7
81d18ad5c4 MDL-19579 code coverage - finished adding initial $includecoverage attributes 2009-06-26 18:25:46 +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
mjollnir_
e862c50a76 portfolio/mahara: php-doc for a confusing private method i didn't understand anymore 2009-06-09 19:58:16 +00:00
mjollnir_
780de011da portfolio: MDL-19358 added $cm to require_login check. this will have to change as soon as we implement portfolio exporting for something other than a course module (eg, a blog, blog post, etc) 2009-06-01 18:53:54 +00:00