|
Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
|
Public Member Functions | |
| __construct (stdclass $user) | |
| Constructor - usually generated from portfolio_format_leap2a::leap2a_writer($USER);. | |
| add_entry (portfolio_format_leap2a_entry $entry) | |
| Adds a entry to the feed ready to be exported. | |
| link_files ($entry, $files) | |
| Helper function to link some stored_files into the feed and link them to a particular entry. | |
| make_selection ($selectionentry, $ids, $selectiontype) | |
| Select an entry that has previously been added into the feed. | |
| to_xml () | |
| Return the entire feed as a string. | |
| portfolio_format_leap2a_writer::__construct | ( | stdclass | $user | ) |
Constructor - usually generated from portfolio_format_leap2a::leap2a_writer($USER);.
| stdclass | $user | the user exporting (almost always $USER) |
| portfolio_format_leap2a_writer::add_entry | ( | portfolio_format_leap2a_entry | $entry | ) |
Adds a entry to the feed ready to be exported.
| portfolio_format_leap2a_entry | $entry | new feed entry to add |
| portfolio_format_leap2a_entry |
| 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.
| portfolio_format_leap2a_entry | $entry | feed object |
| array | $files | array of stored_files to link |
| portfolio_format_leap2a_writer::make_selection | ( | $selectionentry, | |
| $ids, | |||
| $selectiontype | |||
| ) |
Select an entry that has previously been added into the feed.
| portfolio_format_leap2a_entry | string | $selectionentry | the entry to make a selection (id or entry object) |
| array | $ids | array of ids this selection includes |
| string | $selectiontype | for selection type, see: http://wiki.cetis.ac.uk/2009-03/LEAP2A_categories/selection_type |
| portfolio_format_leap2a_writer::to_xml | ( | ) |
Return the entire feed as a string.
Then, it calls for validation
| string | feeds' content in xml |