Renderer factory.
More...
|
| __construct (legacy_data_mapper_factory $legacydatamapperfactory, exporter_factory $exporterfactory, vault_factory $vaultfactory, manager_factory $managerfactory, entity_factory $entityfactory, builder_factory $builderfactory, url_factory $urlfactory, moodle_page $page) |
| Constructor.
|
|
| get_blog_discussion_list_renderer (forum_entity $forum) |
| Create a blog type discussion list renderer.
|
|
| get_discussion_list_renderer (forum_entity $forum) |
| Create a standard type discussion list renderer.
|
|
| get_discussion_renderer (forum_entity $forum, discussion_entity $discussion, int $displaymode) |
| Create a discussion renderer for the given forum and discussion.
|
|
| get_frontpage_news_discussion_list_renderer (forum_entity $forum) |
| Create a discussion list renderer for the social course format.
|
|
| get_posts_renderer () |
| Create a posts renderer to render posts without defined parent/reply relationships.
|
|
| get_posts_search_results_renderer (array $searchterms) |
| Create a posts renderer to render posts in the forum search results.
|
|
| get_single_discussion_list_renderer (forum_entity $forum, discussion_entity $discussion, bool $hasmultiplediscussions, int $displaymode) |
| Create a single type discussion list renderer.
|
|
| get_single_discussion_posts_renderer (int $displaymode=null, bool $readonly=false) |
| Create a posts renderer to render a list of posts in a single discussion.
|
|
| get_social_discussion_list_renderer (forum_entity $forum) |
| Create a discussion list renderer for the social course format.
|
|
| get_user_forum_posts_report_renderer (bool $addlinkstocontext) |
| Create a posts renderer to render posts in mod/forum/user.php.
|
|
◆ __construct()
mod_forum\local\factories\renderer::__construct |
( |
legacy_data_mapper_factory | $legacydatamapperfactory, |
|
|
exporter_factory | $exporterfactory, |
|
|
vault_factory | $vaultfactory, |
|
|
manager_factory | $managerfactory, |
|
|
entity_factory | $entityfactory, |
|
|
builder_factory | $builderfactory, |
|
|
url_factory | $urlfactory, |
|
|
moodle_page | $page ) |
Constructor.
- Parameters
-
legacy_data_mapper_factory | $legacydatamapperfactory | Legacy data mapper factory |
exporter_factory | $exporterfactory | Exporter factory |
vault_factory | $vaultfactory | Vault factory |
manager_factory | $managerfactory | Manager factory |
entity_factory | $entityfactory | Entity factory |
builder_factory | $builderfactory | Builder factory |
url_factory | $urlfactory | URL factory |
moodle_page | $page | Moodle page |
◆ get_blog_discussion_list_renderer()
mod_forum\local\factories\renderer::get_blog_discussion_list_renderer |
( |
forum_entity | $forum | ) |
|
Create a blog type discussion list renderer.
- Parameters
-
forum_entity | $forum | The forum that the discussions belong to |
- Return values
-
◆ get_discussion_list_renderer()
mod_forum\local\factories\renderer::get_discussion_list_renderer |
( |
forum_entity | $forum | ) |
|
Create a standard type discussion list renderer.
- Parameters
-
forum_entity | $forum | The forum that the discussions belong to |
- Return values
-
◆ get_discussion_renderer()
mod_forum\local\factories\renderer::get_discussion_renderer |
( |
forum_entity | $forum, |
|
|
discussion_entity | $discussion, |
|
|
int | $displaymode ) |
Create a discussion renderer for the given forum and discussion.
- Parameters
-
forum_entity | $forum | Forum the discussion belongs to |
discussion_entity | $discussion | Discussion to render |
int | $displaymode | How should the posts be formatted? |
- Return values
-
◆ get_frontpage_news_discussion_list_renderer()
mod_forum\local\factories\renderer::get_frontpage_news_discussion_list_renderer |
( |
forum_entity | $forum | ) |
|
Create a discussion list renderer for the social course format.
- Parameters
-
forum_entity | $forum | The forum that the discussions belong to |
- Return values
-
◆ get_posts_renderer()
mod_forum\local\factories\renderer::get_posts_renderer |
( |
| ) |
|
Create a posts renderer to render posts without defined parent/reply relationships.
- Return values
-
◆ get_posts_search_results_renderer()
mod_forum\local\factories\renderer::get_posts_search_results_renderer |
( |
array | $searchterms | ) |
|
Create a posts renderer to render posts in the forum search results.
- Parameters
-
string[] | $searchterms | The search terms to be highlighted in the posts |
- Return values
-
◆ get_single_discussion_list_renderer()
mod_forum\local\factories\renderer::get_single_discussion_list_renderer |
( |
forum_entity | $forum, |
|
|
discussion_entity | $discussion, |
|
|
bool | $hasmultiplediscussions, |
|
|
int | $displaymode ) |
Create a single type discussion list renderer.
- Parameters
-
forum_entity | $forum | Forum the discussion belongs to |
discussion_entity | $discussion | The discussion entity |
bool | $hasmultiplediscussions | Whether the forum has multiple discussions (more than one) |
int | $displaymode | How should the posts be formatted? |
- Return values
-
◆ get_single_discussion_posts_renderer()
mod_forum\local\factories\renderer::get_single_discussion_posts_renderer |
( |
int | $displaymode = null, |
|
|
bool | $readonly = false ) |
Create a posts renderer to render a list of posts in a single discussion.
- Parameters
-
int | null | $displaymode | How should the posts be formatted? |
bool | $readonly | Should the posts include the actions to reply, delete, etc? |
- Return values
-
◆ get_social_discussion_list_renderer()
mod_forum\local\factories\renderer::get_social_discussion_list_renderer |
( |
forum_entity | $forum | ) |
|
Create a discussion list renderer for the social course format.
- Parameters
-
forum_entity | $forum | The forum that the discussions belong to |
- Return values
-
◆ get_user_forum_posts_report_renderer()
mod_forum\local\factories\renderer::get_user_forum_posts_report_renderer |
( |
bool | $addlinkstocontext | ) |
|
Create a posts renderer to render posts in mod/forum/user.php.
- Parameters
-
bool | $addlinkstocontext | Should links to the course, forum, and discussion be included? |
- Return values
-
The documentation for this class was generated from the following file:
- mod/forum/classes/local/factories/renderer.php