30 protected \ilLanguage
$lng;
43 object $access_handler,
45 ?array $selected_pages = null
52 $this->style_sheet_id = $style_id;
66 function (
$tpl) use ($resource_injector) {
67 $resource_injector->inject(
$tpl);
76 $selected_pages = (count($this->selected_pages) > 0)
77 ? $this->selected_pages
78 : array_map(
static function (
$i) {
82 foreach ($selected_pages as $p_id) {
83 $page_gui = new \ilBlogPostingGUI(
85 $this->access_handler,
93 $print_pages[] = $page_gui->showPage();
104 $lng->loadLanguageModule(
"content");
105 $lng->loadLanguageModule(
"blog");
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) {
129 $lng->txt(
"blog_posting")
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(
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(\ilLanguage $lng, \ilCtrl $ctrl, \ilObjBlog $blog, int $node_id, object $access_handler, int $style_id, ?array $selected_pages=null)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
getOutputMode()
Get output mode.
Injects resources into a template.
Collects all js/css/onload resources necessary for page rendering.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getSelectionForm()
form which is featured in the modal form target is modified to open in new window (not yet possible w...
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...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl