Author exporter.
More...
|
| __construct (author_entity $author, ?int $authorcontextid, array $authorgroups=[], bool $canview=true, array $related=[]) |
| Constructor.
|
|
◆ __construct()
mod_forum\local\exporters\author::__construct |
( |
author_entity | $author, |
|
|
?int | $authorcontextid, |
|
|
array | $authorgroups = [], |
|
|
bool | $canview = true, |
|
|
array | $related = [] ) |
Constructor.
- Parameters
-
author_entity | $author | The author entity to export |
int | null | $authorcontextid | The context id for the author entity to export (null if the user doesn't have one) |
stdClass[] | $authorgroups | The list of groups that the author belongs to |
bool | $canview | Can the requesting user view this author or should it be anonymised? |
array | $related | The related data for the export. |
◆ define_other_properties()
static mod_forum\local\exporters\author::define_other_properties |
( |
| ) |
|
|
staticprotected |
Return the list of additional properties.
- Return values
-
◆ define_related()
static mod_forum\local\exporters\author::define_related |
( |
| ) |
|
|
staticprotected |
Returns a list of objects that are related.
- Return values
-
◆ get_other_values()
mod_forum\local\exporters\author::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/author.php