Commit Graph

363 Commits

Author SHA1 Message Date
mjollnir_
37f03ea00b MDL-15666 - change all the portfolio plugins and callers to use exceptions
rather than relying on return values (send_package and prepare_package)

move zipping of temporary files into the exporter class so it can be overridden during unit tests

fix a small todo in mahara plugin
2008-09-12 11:22:15 +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
mjollnir_
0b88fedf88 MDL-16423 - upload assignment types get mime detection (and fixed earlier related regression) 2008-09-10 09:38:04 +00:00
mjollnir_
a97bcd684c MDL-15758: fixing regressions i introduced in lib.php v 1.359 2008-09-09 21:06:19 +00:00
mjollnir_
d8606b2078 MDL-15833 - make the portfolio callers use the helper functions to detect expected time. 2008-09-09 09:32:16 +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_
797b81d956 MDL-15758 - remove dependence on 'userid' callback parameter in assignment portfolio caller as it's handled by the parent class 2008-09-05 12:44:46 +00:00
nicolasconnault
eb32c6ca84 MDL-15666 minor fixes to assignment portfolio callers, additional param for generator (assignment type), and unit tests for sha1 2008-09-04 13:25:16 +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
skodak
1160eb5af2 MDL-15420 fixed wrong show submission to others test; merged from MOODLE_19_STABLE 2008-08-28 07:23:05 +00:00
skodak
fa686bc4e0 MDL-16220 allow deleting of all files attached to context 2008-08-27 11:46:48 +00:00
scyrma
f8c81c01f0 MDL-16097: Missing $DB. Found by Joseph Morwick. 2008-08-18 06:33:26 +00:00
skodak
77318f4701 MDL-15904 fixed assignment instance deleting 2008-08-17 12:10:16 +00:00
skodak
bb02e931c6 MDL-15904 fixed assignment instance deleting 2008-08-17 12:09:46 +00:00
skodak
dc85b32c1e MDL-15904 fixed assignment instance deleting 2008-08-17 12:09:29 +00:00
skodak
75dfe83083 MDL-15904 fixed assignment reset 2008-08-17 12:06:04 +00:00
skodak
4e866d5e9b MDL-15904 fixed assignment reset 2008-08-17 12:04:42 +00:00
skodak
26a9dc726b whitespace fix 2008-08-16 19:49:23 +00:00
skodak
775f811a66 MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes 2008-08-16 12:16:01 +00:00
mjollnir_
866d543fde MDL-15758 - slight change to the portfolio_add_button contract to be more flexible. 2008-08-14 16:01:12 +00:00
mjollnir_
899ffdfbdd MDL-15758 - fixing bugs nico found in testing 2008-08-14 12:40:20 +00:00
mjollnir_
728e1931a2 MDL-15768 - mod/assignment upgraded to check caps before portfolio export 2008-08-11 15:31:55 +00:00
mjollnir_
d67bfc32a1 MDL-15777 - updated most of the portfolio code to use files api.
Not done:

- forum (the rest of the module isn't using files api yet)
- database mod (touches other parts of the code (ods and excel libs)
- portfolio download plugin (needs discussion with petr about userfiles)

all of these have been disabled in the meantime.
2008-08-09 14:24:58 +00:00
lfrodrigues
2044a2b26f MDL-10107 - Removed old email_to_user with we still arround and added default message processor for user,
adminuser and on messagelib
2008-08-02 00:04:29 +00:00
skodak
172dd12c63 MDL-14589 initial file storage implementation, temporary file manager, migration of course files; blog conversion MDL-15905; assignment conversion MDL-15904; fromslib related file improvements MDL-15906 2008-07-31 22:15:30 +00:00
moodler
120b375891 MDL-10107 Fixed the definition of message providers ... it now works through files very similar to those for events and capabilities, which makes them easy to add/remove/change as necessary 2008-07-31 08:01:46 +00:00
mjollnir_
ffcfd8a777 MDL-15762 log portfolio transfers and notify the user when there are dups 2008-07-30 16:38:13 +00:00
sam_marshall
18a2a0cb3a MDL-15498: Completion: added support for basic completion-on-view and on grade (where applicable) to assignment, choice, data, glossary, lesson, and resource. 2008-07-29 17:22:47 +00:00
mjollnir_
bb63fc3e0c MDL-15834 portfolio supported_formats doesn't need to be abstract 2008-07-29 12:10:14 +00:00
mjollnir_
654119b54e MDL-15758 - fixing assignment & resource bugs 2008-07-28 10:44:25 +00:00
mjollnir_
76bc2cfffa MDL-15758 - fixing bugs I introduced in a refactor in assignment 2008-07-28 10:27:29 +00:00
mjollnir_
5071079cb2 MDL-15830 & MDL-15832: added a new intermediate abstract caller class for modules & removed PORTFOLIO_FORMAT_HTML 2008-07-25 15:17:23 +00:00
mjollnir_
ed1fcf794b MDL-14591: changed the definition of portfolio_add_button
to support passing the callbackfile explicitly if necessary
        and added my name next to some TODOs so I can find them later
2008-07-25 10:31:10 +00:00
mjollnir_
67a87e7db2 portfolio checkin-
see http://git.catalyst.net.nz/gw?p=moodle-r2.git;a=shortlog;h=refs/heads/portfolio for changelog

commit point is this hash on that branch: f9642af4e8bd319d4ecdfd83589db61a8fa6fef2

This comes with two plugins, box.net & download
2008-07-25 08:14:11 +00:00
skodak
f432bebff2 MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE 2008-07-24 21:59:13 +00:00
moodler
3b120e464f MDL-10107 - First check-in of Messaging 2.0 code from Luis Rodrigues, GSOC student.
This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)

This code is not finished yet, a lot of work still has to be done on the
interface.  However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
2008-07-24 08:38:03 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
74d7d73538 MDL-15103 towards assignment dml conversion 2008-06-05 13:12:00 +00:00
skodak
5053f00f33 MDL-15103 towards assignment dml conversion 2008-06-05 10:50:15 +00:00
skodak
c18269c7e5 MDL-14679 towards modform conversion 2008-06-01 21:36:11 +00:00
skodak
7cac0c4b2b MDL-14679 fixed references to mod.html 2008-06-01 19:09:13 +00:00
skodak
fd0e6640cc MDL-14679 fixed some more $db's 2008-05-31 22:18:41 +00:00
dongsheng
a939f681bb "MDL-14129, fix print_error call" 2008-05-22 07:20:45 +00:00
thepurpleblob
e1faf3b99b MDL-14813:
submittedlink() returns an absolute rather than relative link.
2008-05-13 10:43:20 +00:00
skodak
39f563ed5b MDL-14564 pg null trouble fixed by David Mudrak; merged from MOODLE_18_STABLE 2008-04-27 22:41:07 +00:00
scyrma
74369ab567 MDL-13792 - Commiting Patch by Skodak, fixing problem with japanese characters under some conditions. This has been reported to work, if nobody else
comes foward with bugs related to this, it will need to be changed everywhere else where there is no urlencoding done at this time. (merge from 1.8
and 1.9)
2008-04-08 03:04:52 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
a833a46aba MDL-14074 removed obsoleted $CFG->enablerecordcache = true; merged from MOODLE_19_STABLE 2008-03-27 08:40:01 +00:00
skodak
12dce2534f MDL-13899 assignments should be now sending proper submissions and grading dates into gradebook; merged from MOODLE_19_STABLE 2008-03-19 22:35:24 +00:00
dongsheng
d6cc234114 MDL-13481, Distinguish between course fullname and user fullname 2008-03-19 08:49:23 +00:00