31 protected \ilLanguage
$lng;
44 $this->wiki = new \ilObjWiki($wiki_ref_id);
48 static function ($p) {
57 $page = new \ilWikiPage();
58 $page->setEmptyPageXml();
66 function ($tpl) use ($resource_injector) {
67 $resource_injector->inject($tpl);
75 foreach ($this->selected_pages as $p_id) {
76 $page_gui = new \ilWikiPageGUI(
79 $this->wiki->getRefId()
81 $page_gui->setWiki($this->wiki);
83 $print_pages[] = $page_gui->showPage();
98 $form = new \ilPropertyFormGUI();
102 $radg = new \ilRadioGroupInputGUI(
$lng->
txt(
"cont_selection"),
"sel_type");
103 $radg->setValue(
"page");
104 $op1 = new \ilRadioOption(
$lng->
txt(
"cont_current_page"),
"page");
105 $radg->addOption($op1);
106 $op2 = new \ilRadioOption(
$lng->
txt(
"wiki_whole_wiki")
107 .
" (" .
$lng->
txt(
"wiki_pages") .
": " . count($pages) .
")",
"wiki");
108 $radg->addOption($op2);
109 $op3 = new \ilRadioOption(
$lng->
txt(
"wiki_selected_pages"),
"selection");
110 $radg->addOption($op3);
112 $nl = new \ilNestedListInputGUI(
"",
"obj_id");
113 $op3->addSubItem($nl);
115 foreach ($pages as $p) {
127 $form->addItem($radg);
129 $form->addCommandButton(
"printViewOrder",
$lng->
txt(
"wiki_show_print_view"));
131 $form->setTitle(
$lng->
txt(
"cont_print_selection"));
132 $form->setFormAction(
133 $ilCtrl->getFormActionByClass(
Collects all js/css/onload resources necessary for page rendering.
Injects resources into a template.
getOutputMode()
Get output mode.
array null $selected_pages
getTemplateInjectors()
@inheritDoc
__construct(\ilLanguage $lng, \ilCtrl $ctrl, int $wiki_ref_id, ?array $selected_pages)
getSelectionForm()
@inheritDoc
Class ilCtrl provides processing control methods.
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...
static _lookupObjId(int $ref_id)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static getAllWikiPages(int $a_wiki_id, string $lang="-")
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...