|
Moodle
2.2.1
http://www.collinsharper.com
|


Static Public Member Functions | |
| static | mimetypes () |
| static | get_file_directory () |
| static | file_output ($file, $options=null) |
the most basic type - pretty much everything is a subtype
Definition at line 126 of file formats.php.
| static file_output | ( | $ | file, |
| $ | options = null |
||
| ) | [static] |
given a file, return a snippet of markup in whatever format to link to that file. usually involves the path given by get_file_directory this is not supported in subclasses of portfolio_format_file since they're all just single files.
| stored_file | $file | |
| array | $options | array of options to pass. can contain: attributes => hash of existing html attributes (eg title, height, width, etc) and whatever the sub class adds into this list |
Reimplemented from portfolio_format.
Definition at line 136 of file formats.php.
| static get_file_directory | ( | ) | [static] |
for multipart formats, eg html with attachments, we need to have a directory to place associated files in inside the zip file. this is the name of that directory
Reimplemented from portfolio_format.
Definition at line 132 of file formats.php.
| static mimetypes | ( | ) | [static] |
array of mimetypes this format supports
Reimplemented from portfolio_format.
Reimplemented in portfolio_format_presentation, portfolio_format_spreadsheet, portfolio_format_document, portfolio_format_pdf, portfolio_format_text, portfolio_format_video, portfolio_format_plainhtml, and portfolio_format_image.
Definition at line 128 of file formats.php.