1 <?php declare(strict_types=1);
17 const PAGE =
'frm_thread_page';
24 return $this->context_collection->main()->repository()->administration();
33 $iff =
function ($id) {
34 return $this->identification_provider->contextAwareIdentifier($id);
36 $l =
function (
string $content) {
37 return $this->dic->ui()->factory()->legacy($content);
42 $additionalData = $called_contexts->getLast()->getAdditionalData();
43 if ($additionalData->exists(self::SHOW_FORUM_THREADS_TOOL) && $additionalData->get(self::SHOW_FORUM_THREADS_TOOL) ===
true) {
44 $thread = $additionalData->get(self::FORUM_THEAD);
45 $controller = $additionalData->get(self::FORUM_BASE_CONTROLLER);
46 $root = $additionalData->get(self::FORUM_THREAD_ROOT);
49 $title = $this->dic->language()->txt(
'forums_articles');
50 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
'frm', $title)->withIsOutlined(
true);
52 $tools[] = $this->factory
53 ->tool($iff(
'Forum|Tree'))
56 ->withContentWrapper(
static function () use ($l, $controller, $thread, $root, $additionalData) {
58 'frm_exp_' . $thread->getId(),
67 return $l($exp->getHTML(
true));
setCurrentPage(int $currentPage)
Class ilForumExplorerGUI.
Class ChatMainBarProvider .