]> git.mjollnir.org Git - moodle.git/commit
portfolio MDL-20896 added the ability to set mime info for "intended" files
authorPenny Leach <penny@mjollnir.org>
Tue, 15 Dec 2009 11:42:53 +0000 (12:42 +0100)
committerPenny Leach <penny@mjollnir.org>
Tue, 15 Dec 2009 11:46:43 +0000 (12:46 +0100)
commit55ac45a4e4f67e0499870e8a52fbf06ef2a927ad
tree6d4701d0e109f9beaad1cded67c3afa9d4f391f1
parentecea942368da92cf1bb84307180217a1cfae9ed7
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)
lang/en_utf8/portfolio.php
lib/portfolio/caller.php
lib/portfolio/constants.php
lib/portfoliolib.php
mod/data/export.php
mod/data/export_form.php
mod/data/locallib.php
portfolio/add.php