Posts exporter class.
More...
|
| __construct (array $posts, array $authorsbyid=[], array $authorcontextids=[], array $attachmentsbypostid=[], array $groupsbyauthorid=[], array $tagsbypostid=[], array $ratingbypostid=[], array $related=[], array $inlineattachmentsbypostid=[]) |
| Constructor.
|
|
Posts exporter class.
- Copyright
- 2019 Ryan Wyllie ryan@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
mod_forum\local\exporters\posts::__construct |
( |
array | $posts, |
|
|
array | $authorsbyid = [], |
|
|
array | $authorcontextids = [], |
|
|
array | $attachmentsbypostid = [], |
|
|
array | $groupsbyauthorid = [], |
|
|
array | $tagsbypostid = [], |
|
|
array | $ratingbypostid = [], |
|
|
array | $related = [], |
|
|
array | $inlineattachmentsbypostid = [] ) |
Constructor.
- Parameters
-
post_entity[] | $posts | List of posts to export |
author_entity[] | $authorsbyid | List of authors for the posts indexed by author id |
int[] | $authorcontextids | List of authors context ids indexed by author id |
array | $attachmentsbypostid | List of attachments indexed by post id |
array | $groupsbyauthorid | List of author's groups indexed by author id |
array | $tagsbypostid | List of tags indexed by post id |
array | $ratingbypostid | List of ratings indexed by post id |
array | $related | The related objects for exporting |
array | $inlineattachmentsbypostid | List of inline attachments indexed by post id |
◆ define_other_properties()
static mod_forum\local\exporters\posts::define_other_properties |
( |
| ) |
|
|
staticprotected |
Return the list of additional properties.
- Return values
-
◆ define_related()
static mod_forum\local\exporters\posts::define_related |
( |
| ) |
|
|
staticprotected |
Returns a list of objects that are related.
- Return values
-
◆ get_other_values()
mod_forum\local\exporters\posts::get_other_values |
( |
renderer_base | $output | ) |
|
|
protected |
Get the additional values to inject while exporting.
- Parameters
-
- Return values
-
array | Keys are the property names, values are their values. |
The documentation for this class was generated from the following file:
- mod/forum/classes/local/exporters/posts.php