Class used for leap2a format.
More...
|
static | conflicts ($format) |
| Whether this format conflicts with the given format.
|
|
static | file_id_prefix () |
| Return the file prefix.
|
|
static | file_output ($file, $options=null) |
| Return the link to a file.
|
|
static | get_file_directory () |
| For multipart formats, eg html with attachments, we need to have a directory to place associated files from inside the zip file.
|
|
static | leap2a_writer (stdclass $user=null) |
| Generate portfolio_format_leap2a.
|
|
static | make_tag ($file, $path, $attributes) |
| Create portfolio tag.
|
|
static | manifest_name () |
| Return the manifest name.
|
|
static | mimetypes () |
| Return rich text mimetypes.
|
|
Class used for leap2a format.
- Copyright
- 2009 Penny Leach
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ conflicts()
static portfolio_format::conflicts |
( |
| $format | ) |
|
|
staticinherited |
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.
- Parameters
-
string | $format | one of the FORMAT_XX constants |
- Return values
-
Reimplemented in portfolio_format_image, portfolio_format_plainhtml, portfolio_format_richhtml, and portfolio_format_text.
◆ file_id_prefix()
static portfolio_format_leap2a::file_id_prefix |
( |
| ) |
|
|
static |
Return the file prefix.
- Return values
-
◆ file_output()
static portfolio_format_leap2a::file_output |
( |
| $file, |
|
|
| $options = null ) |
|
static |
Return the link to a file.
- Parameters
-
stored_file | $file | information for existing file |
array | $options | array of options to pass. can contain: attributes => hash of existing html attributes (eg title, height, width, etc) |
- Return values
-
Reimplemented from portfolio_format.
◆ get_file_directory()
static portfolio_format_leap2a::get_file_directory |
( |
| ) |
|
|
static |
For multipart formats, eg html with attachments, we need to have a directory to place associated files from inside the zip file.
this is the name of that directory
- Return values
-
Reimplemented from portfolio_format.
◆ leap2a_writer()
static portfolio_format_leap2a::leap2a_writer |
( |
stdclass | $user = null | ) |
|
|
static |
◆ make_tag()
static portfolio_format::make_tag |
( |
| $file, |
|
|
| $path, |
|
|
| $attributes ) |
|
staticinherited |
Create portfolio tag.
- Parameters
-
stored_file | $file | file information object |
string | $path | file path |
array | $attributes | portfolio attributes |
- Return values
-
◆ manifest_name()
static portfolio_format_leap2a::manifest_name |
( |
| ) |
|
|
static |
Return the manifest name.
- Return values
-
◆ mimetypes()
static portfolio_format_rich::mimetypes |
( |
| ) |
|
|
staticinherited |
The documentation for this class was generated from the following file:
- lib/portfolio/formats.php