66 $this->wiki = new \ilObjWiki($wiki_ref_id);
67 $this->selected_pages = (!is_null($selected_pages))
70 static function ($p) {
79 $page = new \ilWikiPage();
80 $page->setEmptyPageXml();
88 function ($tpl) use ($resource_injector) {
89 $resource_injector->inject($tpl);
97 foreach ($this->selected_pages as $p_id) {
98 $page_gui = new \ilWikiPageGUI(
101 $this->wiki->getRefId()
103 $page_gui->setWiki($this->wiki);
105 $print_pages[] = $page_gui->showPage();
120 $form = new \ilPropertyFormGUI();
124 $radg = new \ilRadioGroupInputGUI(
$lng->txt(
"cont_selection"),
"sel_type");
125 $radg->setValue(
"page");
126 $op1 = new \ilRadioOption(
$lng->txt(
"cont_current_page"),
"page");
127 $radg->addOption($op1);
128 $op2 = new \ilRadioOption(
$lng->txt(
"wiki_whole_wiki")
129 .
" (" .
$lng->txt(
"wiki_pages") .
": " . count($pages) .
")",
"wiki");
130 $radg->addOption($op2);
131 $op3 = new \ilRadioOption(
$lng->txt(
"wiki_selected_pages"),
"selection");
132 $radg->addOption($op3);
134 $nl = new \ilNestedListInputGUI(
"",
"obj_id");
135 $op3->addSubItem($nl);
137 foreach ($pages as $p) {
145 $lng->txt(
"wiki_page")
149 $form->addItem($radg);
151 $form->addCommandButton(
"printViewOrder",
$lng->txt(
"wiki_show_print_view"));
153 $form->setTitle(
$lng->txt(
"cont_print_selection"));
154 $form->setFormAction(
155 $ilCtrl->getFormActionByClass(
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getOutputMode()
Get output mode.
static _lookupObjId(int $ref_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Injects resources into a template.
Collects all js/css/onload resources necessary for page rendering.
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...
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...
static getAllWikiPages(int $a_wiki_id, string $lang="-")
__construct(\ilLanguage $lng, \ilCtrl $ctrl, int $wiki_ref_id, ?array $selected_pages)
PrintView constructor.