MDL-16587 bit of a large refactor of the portfolio formats. still more to come.

This commit is contained in:
mjollnir_ 2008-10-11 17:33:20 +00:00
parent a813ddc975
commit 6be1dcae99
16 changed files with 295 additions and 141 deletions

View file

@ -109,7 +109,17 @@ abstract class portfolio_plugin_base {
* @return array list of formats
*/
public static function supported_formats() {
return array(PORTFOLIO_FORMAT_FILE);
return array(PORTFOLIO_FORMAT_FILE, PORTFOLIO_FORMAT_RICHHTML);
}
/**
* override this if you are supporting the 'file' type (or a subformat)
* but have restrictions on mimetypes (see googledocs plugin for more info)
*
* @return boolean
*/
public static function file_mime_check($mimetype) {
return true;
}