19 declare(strict_types=1);
    32     protected \ilLanguage 
$lng;
    45         object $access_handler,
    47         ?array $selected_pages = null
    54         $this->style_sheet_id = $style_id;
    68             function ($tpl) use ($resource_injector) {
    69                 $resource_injector->inject($tpl);
    78         $selected_pages = (count($this->selected_pages) > 0)
    79             ? $this->selected_pages
    80             : array_map(
static function ($i) {
    84         foreach ($selected_pages as $p_id) {
    85             $page_gui = new \ilBlogPostingGUI(
    87                 $this->access_handler,
    95             $print_pages[] = $page_gui->showPage();
   106         $lng->loadLanguageModule(
"content");
   107         $lng->loadLanguageModule(
"blog");
   108         $form = new \ilPropertyFormGUI();
   112         $radg = new \ilRadioGroupInputGUI($lng->txt(
"cont_selection"), 
"sel_type");
   113         $radg->setValue(
"page");
   114         $op1 = new \ilRadioOption($lng->txt(
"blog_whole_blog")
   115             . 
" (" . $lng->txt(
"blog_postings") . 
": " . count($postings) . 
")", 
"wiki");
   116         $radg->addOption($op1);
   117         $op2 = new \ilRadioOption($lng->txt(
"blog_selected_pages"), 
"selection");
   118         $radg->addOption($op2);
   120         $nl = new \ilNestedListInputGUI(
"", 
"obj_id");
   121         $op2->addSubItem($nl);
   123         foreach ($postings as $p) {
   131                 $lng->txt(
"blog_posting")
   135         $form->addItem($radg);
   137         $form->addCommandButton(
"printPostings", $lng->txt(
"blog_show_print_view"));
   139         $form->setTitle($lng->txt(
"cont_print_selection"));
   140         $form->setFormAction(
   141             $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. 
 
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...