Posts renderer class.
More...
|
| __construct (renderer_base $renderer, exported_posts_builder $exportedpostsbuilder, string $template, callable $postprocessfortemplate=null) |
| Constructor. More...
|
|
| render (stdClass $user, array $forums, array $discussions, array $posts) |
| Render the given posts for the forums and discussions. More...
|
|
Posts renderer 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\renderers\posts::__construct |
( |
renderer_base |
$renderer, |
|
|
exported_posts_builder |
$exportedpostsbuilder, |
|
|
string |
$template, |
|
|
callable |
$postprocessfortemplate = null |
|
) |
| |
Constructor.
- Parameters
-
renderer_base | $renderer | Renderer base |
exported_posts_builder | $exportedpostsbuilder | Builder for building exported posts |
string | $template | The template to render |
callable | $postprocessfortemplate | Function to process exported posts before template rendering |
◆ render()
mod_forum\local\renderers\posts::render |
( |
stdClass |
$user, |
|
|
array |
$forums, |
|
|
array |
$discussions, |
|
|
array |
$posts |
|
) |
| |
Render the given posts for the forums and discussions.
- Parameters
-
stdClass | $user | The user viewing the posts |
forum_entity[] | $forums | A list of all forums for these posts |
discussion_entity[] | $discussions | A list of all discussions for these posts |
post_entity[] | $posts | The posts to render |
- Return values
-
The documentation for this class was generated from the following file: