Object to encapsulate the writing of leap2a.
More...
Object to encapsulate the writing of leap2a.
Should be used like: $writer = portfolio_format_leap2a\leap2a_writer($USER); $entry = new portfolio_format_leap2a_entry('forumpost6', $title, 'leap2', 'somecontent') $entry->add_link('something', 'has_part')->add_link('somethingelse', 'has_part'); .. etc $writer->add_entry($entry); $xmlstr = $writer->to_xml();
- Todo
- MDL-31287 - find a way to ensure that all referenced files are included
- Copyright
- 2009 Penny Leach
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
portfolio_format_leap2a_writer::__construct |
( |
stdclass | $user | ) |
|
◆ add_entry()
Adds a entry to the feed ready to be exported.
- Parameters
-
- Return values
-
◆ link_files()
portfolio_format_leap2a_writer::link_files |
( |
| $entry, |
|
|
| $files ) |
Helper function to link some stored_files into the feed and link them to a particular entry.
- Parameters
-
◆ make_selection()
portfolio_format_leap2a_writer::make_selection |
( |
| $selectionentry, |
|
|
| $ids, |
|
|
| $selectiontype ) |
Select an entry that has previously been added into the feed.
- Parameters
-
◆ to_xml()
portfolio_format_leap2a_writer::to_xml |
( |
| ) |
|
Return the entire feed as a string.
Then, it calls for validation
- Return values
-
string | feeds' content in xml |
The documentation for this class was generated from the following file:
- lib/portfolio/formats/leap2a/lib.php