170 Commits

Author SHA1 Message Date
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
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
mjollnir_
9e7d38b11a portfolio/ replaced course_setup with $PAGE->set_course which seems to have been missed 2009-05-09 13:15:41 +00:00
mjollnir_
4c7a4ef9df MDL-18734 - documentation and coding style in portfolio/*
Added much needed documentation to the portfolio "scripts" (the libs are all
fine), and moved all parameter fetching from the body of the file to the top.
2009-05-02 13:23:22 +00:00
stronk7
74c288a100 MDL-18577 drop enums support - step2: enums out from install.xml files 2009-05-01 14:07:43 +00:00
skodak
add560f300 MDL-14591 adding standard access control 2009-03-28 22:15:12 +00:00
skodak
98335b2da8 MDL-14591 adding standard access control 2009-03-28 22:02:00 +00:00
skodak
d1aa1e4855 MDL-17758 fixed hardcoded /admin/ links 2009-01-01 14:25:29 +00:00
poltawski
683dacd065 Removing the obsolete plugins which depend on alredy removed libs
MDL-16417
2008-11-29 20:27:04 +00:00
poltawski
ee91cf9591 portfolio: MDL-16417 - Adding googledocs/picasa plugins
* Added simple library for googleapi things
* Respository plugins to follow
2008-11-29 20:24:25 +00:00
skodak
214b1cf7a8 MDL-17428 Do not include in the middle of file in global scope 2008-11-27 22:46:34 +00:00
mjollnir_
62e7195480 MDL-16587 portfolio export formats - support straight file export not just RICHHTML (html + attachments) , it doesn't make sense in things like box.net 2008-11-11 19:54:50 +00:00
dongsheng
18729a5138 "MDL-16341, fix parameters list" 2008-11-03 03:58:23 +00:00
dongsheng
b3e6e8047b "MDL-16341, add upload function for flickrlib" 2008-11-03 03:22:55 +00:00
nicolasconnault
5ab88978b9 MDL-17091 Adding part of GoogleData API from the Zend Framework, in order to support portfolio and repository functions. Also completed basic portfolio plugin. 2008-10-31 15:33:45 +00:00
nicolasconnault
0d4231f0e3 MDL-16341 Finished flickr plugin 2008-10-31 09:14:06 +00:00
nicolasconnault
a55d94d4ac MDL-16341 Almost finished portfolio flickr plugin. Modified phpflickr->request method so it can upload files, but having permission issue (only read) 2008-10-25 13:35:20 +00:00
mjollnir_
14cb94ebfe portfolio/mahara tighter url for continuing to portfolio to enter the folder and highlight the new file 2008-10-21 09:55:04 +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