Commit Graph

630 Commits

Author SHA1 Message Date
skodak 4eef139962 MDL-14589 file browsing refactoring - moving url encoding to filelib.php for now 2009-05-20 22:32:02 +00:00
skodak 9b010a102e MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:33:08 +00:00
skodak dc5c2bd9eb MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:17:21 +00:00
skodak 42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
skodak c119057ae0 MDL-18910 normalised module intro and introformat 2009-04-20 18:28:49 +00:00
poltawski 041a1e4173 performance/mymoodle MDL-18241 - Assigments were very expensive
Reworked to take queries out of loops and let it scale. Unfortunately
I don't think we can get the get_users_by_capability() call out of the
loop on assignments.

Real query numbers before/after:
Teacher: 12,509 / 314
Student: 127 / 72
Admin: 718 / 133

Conflicts:

	mod/assignment/lib.php

Merged from 19_STABLE (with dmlib changes)
2009-02-16 13:14:30 +00:00
skodak 795a08adb7 MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements 2009-01-31 20:07:32 +00:00
skodak 9c82ff2acd MDL-17457 migrated all modules to new db/install.php; added upgrade.txt file for devs converting contrib modules 2009-01-12 21:13:28 +00:00
skodak 1045a0074c MDL-17849 sql queries not printed by default during upgrade anymore, there is a new config.php only setting $CFG->upgradeshowsql instead 2009-01-12 16:52:53 +00:00
skodak e8b7114d5e MDL-17774 refactored USER switching in cron scripts - now standardised in cron_setup_user() 2009-01-03 13:16:59 +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
tjhunt 9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +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
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
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_ 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