Moodle  2.2.1
http://www.collinsharper.com
portfolio_format_file Class Reference
Inheritance diagram for portfolio_format_file:
Collaboration diagram for portfolio_format_file:

Static Public Member Functions

static mimetypes ()
static get_file_directory ()
static file_output ($file, $options=null)

Detailed Description

the most basic type - pretty much everything is a subtype

Definition at line 126 of file formats.php.


Member Function Documentation

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.

Parameters:
stored_file$file
array$optionsarray 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
Returns:
string some html or xml or whatever

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations