19declare(strict_types=1);
31 protected \ilLanguage
$lng;
42 protected int $blog_id,
53 $this->style_sheet_id = $style_id;
56 $this->posting_manager =
$DIC->blog()->internal()->domain()->posting();
68 function (
$tpl) use ($resource_injector) {
69 $resource_injector->inject(
$tpl);
79 ? $this->selected_pages
80 : $this->posting_manager->getAllPostingIds($this->blog_id);
83 $page_gui = new \ilBlogPostingGUI(
85 $this->access_handler,
93 $print_pages[] = $page_gui->showPage();
103 $postings = $this->posting_manager->getAllPostings($this->blog_id);
106 $form = new \ilPropertyFormGUI();
110 $radg = new \ilRadioGroupInputGUI(
$lng->
txt(
"cont_selection"),
"sel_type");
111 $radg->setValue(
"page");
112 $op1 = new \ilRadioOption(
$lng->
txt(
"blog_whole_blog")
113 .
" (" .
$lng->
txt(
"blog_postings") .
": " . count($postings) .
")",
"wiki");
114 $radg->addOption($op1);
115 $op2 = new \ilRadioOption(
$lng->
txt(
"blog_selected_pages"),
"selection");
116 $radg->addOption($op2);
118 $nl = new \ilNestedListInputGUI(
"",
"obj_id");
119 $op2->addSubItem($nl);
121 foreach ($postings as $p) {
123 (
string) $p->getId(),
133 $form->addItem($radg);
135 $form->addCommandButton(
"printPostings",
$lng->
txt(
"blog_show_print_view"));
137 $form->setTitle(
$lng->
txt(
"cont_print_selection"));
138 $form->setFormAction(
139 $ilCtrl->getFormActionByClass(
__construct(\ilLanguage $lng, \ilCtrl $ctrl, protected int $blog_id, int $node_id, object $access_handler, int $style_id, ?array $selected_pages=null)
Posting PostingManager $posting_manager
getTemplateInjectors()
@inheritDoc
getSelectionForm()
@inheritDoc
@ilCtrl_Calls ILIAS\Blog\Editing\EditingGUI: ilRepositorySearchGUI, ilBlogPostingGUI
Collects all js/css/onload resources necessary for page rendering.
Injects resources into a template.
getOutputMode()
Get output mode.
Class ilCtrl provides processing control methods.
loadLanguageModule(string $a_module)
Load language module.
txt(string|LanguageIdentifier $a_topic, ?int $n=null)
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly ilGlobalTemplateInterface $tpl