]> git.mjollnir.org Git - moodle.git/commit
portfolio MDL-20896 added the ability to set mime info for "intended" files
authorPenny Leach <penny@liip.ch>
Tue, 15 Dec 2009 12:36:49 +0000 (12:36 +0000)
committerPenny Leach <penny@liip.ch>
Tue, 15 Dec 2009 12:36:49 +0000 (12:36 +0000)
commit521a6ab04d06e5ffdb444ea766ccbf352e622aab
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