665 Commits

Author SHA1 Message Date
mjollnir_
bd2109dfc3 MDL-15666: assignment portfolio unit tests should not try and use file-ish assignment types yet 2008-10-13 10:18:43 +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
poltawski
26087ac5d2 MDL-16461 - default wasn't being set on send for marking due to
incorrect element name

thanks to Brian Gray
2008-10-09 11:24:11 +00:00
nicolasconnault
cc934d000b MDL-15871 Merging from MOODLE_19_STABLE 2008-10-08 08:25:16 +00:00
tjhunt
16851b22ad MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 10:04:01 +00:00
skodak
db4a3d8ffe MDL-16666 removing all use_html_editor() instances 2008-09-24 21:03:36 +00:00
jerome
92b2bd00f8 MDL-12297: improvement for fix "assignment view submission" link into "Profil/Activty Report/all logs, merged from 19 2008-09-23 07:47:43 +00:00
jerome
19002f9fcf MDL-12297: fix "assignment view submission" link into "Profil/Activty Report/all logs, merged from 19 2008-09-23 07:28:35 +00:00
nicolasconnault
31355d28c1 MDL-15666 MDL-16486 2008-09-16 07:33:16 +00:00
nicolasconnault
795ad63034 MDL-15666 Testing a matrix of portfolio caller/plugin. Starting the new cleanup method in unit tests (max id) 2008-09-15 13:18:44 +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
nicolasconnault
617ac19bd2 MDL-16423 Adding a missing $ sign 2008-09-12 19:17:53 +00:00
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_
27dda89ffe MDL-15666 - changes to the portfolio caller tests
now that i changed the api again (adding load_data), rather than add a call to it to
all the callers, i abstracted the caller setup into the parent class (portfoliolib_test)
2008-09-11 13:47:40 +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
skodak
6b04ddc500 MDL-16075, MDL-16072, MDL-15094 fixing last commit, missed version bumps in upgrade.php 2008-08-18 22:36:33 +00:00
skodak
f7f71f83ba MDL-15904 fixed pg problem 2008-08-18 22:26:38 +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
71a5dbd770 MDL-15904 incorrect use of count sql fixed 2008-08-16 19:12:25 +00:00
skodak
930f2962af MDL-15904 simplified moddata cleanup 2008-08-16 18:24:03 +00:00
skodak
591e205fb6 MDL-15904 oops - fixed assignment upgrade migration 2008-08-16 18:13:38 +00:00
skodak
43c60e88af comment typo 2008-08-16 15:54:54 +00:00
skodak
18e353b049 comment typo 2008-08-16 13:59:23 +00:00
skodak
b91807e30a MDL-15904 fixed problem in interrupted assignment file migration 2008-08-16 13:32:37 +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