30 protected \ilLanguage
$lng;
52 $this->style_sheet_id = $style_id;
66 function (
$tpl) use ($resource_injector) {
67 $resource_injector->inject(
$tpl);
77 ? $this->selected_pages
78 : array_map(
static function (
$i) {
83 $page_gui = new \ilBlogPostingGUI(
85 $this->access_handler,
93 $print_pages[] = $page_gui->showPage();
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) {
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(
getTemplateInjectors()
@inheritDoc
__construct(\ilLanguage $lng, \ilCtrl $ctrl, \ilObjBlog $blog, int $node_id, object $access_handler, int $style_id, ?array $selected_pages=null)
getSelectionForm()
@inheritDoc
Collects all js/css/onload resources necessary for page rendering.
Injects resources into a template.
getOutputMode()
Get output mode.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getAllPostings(int $a_blog_id, int $a_limit=1000, int $a_offset=0)
Get all postings of blog.
Class ilCtrl provides processing control methods.
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...