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


Static Public Member Functions | |
| static | get_file_directory () |
| static | file_output ($file, $options=null) |
| static | conflicts ($format) |
most commonly used rich format - richhtml - html with attachments eg inline images
Definition at line 220 of file formats.php.
| static conflicts | ( | $ | format | ) | [static] |
whether this format conflicts with the given format this is used for the case where an export location "generally" supports something like FORMAT_PLAINHTML but then in a specific export case, must add attachments which means that FORMAT_RICHHTML is supported in that case which implies removing support for FORMAT_PLAINHTML. Note that conflicts don't have to be bi-directional (eg FORMAT_PLAINHTML conflicts with FORMAT_RICHHTML but not the other way around) and things within the class hierarchy are resolved automatically anyway.
This is really just between subclasses of format_rich and subclasses of format_file.
| string | $format | one of the FORMAT_XX constants |
Reimplemented from portfolio_format.
Definition at line 232 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 224 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 221 of file formats.php.
