82 Commits

Author SHA1 Message Date
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
887160c7cb portfolio MDL-20896 added mimetype checking for portfolio plugins for single-file exports 2009-11-18 15:34:58 +00:00
Penny Leach
3ec8d78626 portfolio MDL-20894 better checking of no common formats 2009-11-18 14:06:03 +00:00
Penny Leach
edf1fc350a portfolio: MDL-20892 moved portfolio/type/* plugins to portfolio/* 2009-11-18 13:27:38 +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
Petr Skoda
7c7d3afab5 MDL-20766 message_send() used intead of events, it will enable us to improve performance and solve db transactions issues independedntly from events, hopefully this will give us more options in future too because the events are designed specifically for communication "moodle-->external systems" 2009-11-07 10:27:57 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
nicolasconnault
642816a60c MDL-19799 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:50:50 +00:00
nicolasconnault
aa9a686740 MDL-19799 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:20:12 +00:00
skodak
98c8594a76 MDL-16438 fixed portfolio regression 2009-07-04 09:48:56 +00:00
tjhunt
f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +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
mjollnir_
766d61cbb8 portfolio: MDL-19358 and MDL-19354 added sesskey() protection when first initating a portfolio export; verify callback class is part of the portfolio_caller_base hierarchy; re-check permissions in the caller when waking up the portfolio exporter object (between requests) 2009-06-01 17:06:28 +00:00
samhemelryk
50fcb1d835 lib MDL-19236 Added boilerplates and copyrights 2009-05-26 03:23:32 +00:00
skodak
d1aa1e4855 MDL-17758 fixed hardcoded /admin/ links 2009-01-01 14:25:29 +00:00
mjollnir_
6be1dcae99 MDL-16587 bit of a large refactor of the portfolio formats. still more to come. 2008-10-11 17:33:20 +00:00
mjollnir_
5f98870bf2 MDL-16526 - don't notify admins about misconfigured plugins, only plugin instances. 2008-09-18 09:57:08 +00:00
mjollnir_
2512cb3509 MDL-14591 - recover gracefully from portfolio cron 2008-09-16 21:41:26 +00:00
mjollnir_
b816c08a3f MDL-16526 - added admin notifications for misconfigured portfolio plugins.
does not get triggered while admin is currently editing, only when users use it.
2008-09-16 19:09:30 +00:00
mjollnir_
6e6cf8a366 MDL-16520 - print info about current export 2008-09-16 12:28:20 +00:00
mjollnir_
a476313639 MDL-16520 - make the already exporting portfolio error more user friendly 2008-09-16 10:41:17 +00:00
mjollnir_
9d7432f650 MDL-16423 - changed button->set_formats to respect more general formats (for later when we have richer export formats that aren't mostly based on mime) 2008-09-15 13:13:21 +00:00
mjollnir_
11ae365cf2 MDL-16423 - fixing regression i introduced in refactor with missing global 2008-09-11 14:12:07 +00:00
mjollnir_
0d06b6fda7 MDL-16423 - big refactor of the way callers interact with the portfolio code
added two new contract methods to the caller class, load_data and expected_callbackargs (static)
this means that the base class is the only place that needs a constructor
and that no data loading happens in the constructor
this in turn means we can check callback argument validity much more lightly

also completely remoted portfolio_add_button function and replaced with a class
as the argument list was getting out of control.  it's now much more readable.
2008-09-11 13:42:58 +00:00
nicolasconnault
ef6f0f603d MDL-15666 new unit test for new button class 2008-09-10 17:08:14 +00:00
mjollnir_
d1581fc53b MDL-16423 - make the button object more robust by detecting errors better 2008-09-10 16:46:23 +00:00
mjollnir_
380a251f58 MDL-16423 - fixing bugs in last commit (portfolio_add_button refactor) 2008-09-10 16:43:33 +00:00
mjollnir_
ce09fecc99 MDL-16423 - refactor of portfolio_add_button into class for much better usability
currently portfolio_add_button still exists and just acts as a wrapper around the class
so i have not changed any calling code to use the new objects yet.
2008-09-10 16:34:08 +00:00
mjollnir_
bee4bce2a9 MDL-15833 - provide helper functions to determine expected time, and allow admins to set thresholds. 2008-09-09 08:57:51 +00:00
mjollnir_
87fcac8d78 MDL-14591 - split portfoliolib into logical parts for better readability
Especially as some of the functions shared by base classes (portfolio plugin vs caller) were the same
it was getting a bit unweildy to have all this in one file.
2008-09-08 13:44:36 +00:00
mjollnir_
ea0de12f10 MDL-16360 - added support for mime-style subformat detection for portfolio supported formats
works well with flickr plugin (tested by uploading an image as a forum attachment and being offered flickr plugin but not for normal attachments)
2008-09-05 17:07:22 +00:00
mjollnir_
150533305c MDL-14591 - improved phpdocs in portfolio_exporter class, fixed 2 bugs 2008-09-05 12:40:46 +00:00
nicolasconnault
77ac22a5b6 MDL-15666 sha1 tests for glossary callers. Entry caller test currently fails. 2008-09-04 11:44:48 +00:00
mjollnir_
3bb8a2c75c MDL-16322 - switch calls to print_error to throw exceptions in portfolio callers 2008-09-04 10:38:44 +00:00
mjollnir_
0f71f48bcb MDL-14591 - added a get_name static method to portfolio plugins and use this as a default title for adding new instances.
also fixed a small bug in 'cleanup' function. nico - your flickr plugin is missing a string for the name
2008-09-02 16:21:14 +00:00
mjollnir_
3304eb44cf MDL-14591 - better dealing with sanity checks in plugins 2008-09-02 15:42:15 +00:00
mjollnir_
e6b8473257 MDL-14591 - use new warning form element rather than static when configuring a broken portfolio plugin 2008-09-02 12:56:23 +00:00
mjollnir_
36facf2e0b MDL-14591: improvements to configuring already-broken portfolio plugins 2008-09-02 10:29:09 +00:00
stronk7
ebdf895759 Swapping portfolio_exception and portfolio_export_exception. Was
causing some problems under PHP 5.2.5 (Win32 packages).
2008-09-02 09:22:36 +00:00
mjollnir_
f1ebc1926e MDL-14591 - notice to user if the remote system has forced queueing 2008-09-01 14:07:29 +00:00
mjollnir_
31ca68c4c3 MDL-14591 - fixing bug in last commit that would have broken for 'push' portfolio transfers 2008-08-30 16:39:08 +00:00
mjollnir_
d5dfe1b361 MDL-15362 - better robustness in wakeup
MDL-14591 - fixed a bug in portfolio queued transport (not saving updates)
2008-08-30 16:37:40 +00:00
mjollnir_
2eb07e7904 MDL-14591 - misc improvements to portfolio api 2008-08-29 12:36:56 +00:00
skodak
90658eefb0 MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup 2008-08-26 05:45:07 +00:00
mjollnir_
83f600583e MDL-14591 - added support for portfolio plugins to force queueing and fixed a couple bugs. 2008-08-22 13:47:51 +00:00
mjollnir_
e35691563b MDL-16134 - fixing up exception throws. 2008-08-21 09:07:00 +00:00
mjollnir_
beb4ac1a5d MDL-14591 - better security when reawakening an interupted export 2008-08-20 15:58:29 +00:00
mjollnir_
349242a31d MDL-16127 - smarter handling of supported formats in callers 2008-08-20 13:30:37 +00:00
mjollnir_
23cbde0a14 MDL-16134 - fixing regression introduced by conversion to exceptions 2008-08-20 09:31:31 +00:00