28 protected \ILIAS\Wiki\Page\PageManager
$pm;
39 $this->
ctrl = $DIC->ctrl();
40 $this->
lng = $DIC->language();
41 $this->
access = $DIC->access();
42 $ilCtrl = $DIC->ctrl();
43 $lng = $DIC->language();
45 $this->ot =
$service->domain()->wiki()->translation(
$service->gui()->request()->getRefId());
49 $this->
setData($templates->getAllInfo());
54 if ($this->ot->getContentTranslationActivated()) {
57 $this->
addColumn($this->
lng->txt(
"wiki_templ_new_pages"),
"");
58 $this->
addColumn($this->
lng->txt(
"wiki_templ_add_to_page"),
"");
64 $this->
setRowTemplate(
"tpl.wiki_page_templates_row.html",
"components/ILIAS/Wiki");
68 $this->pm =
$service->domain()->page()->page(
69 $service->gui()->request()->getRefId()
73 protected function fillRow(array $a_set): void
75 if ($this->ot->getContentTranslationActivated()) {
76 $this->tpl->setCurrentBlock(
"trans");
77 $this->tpl->setVariable(
"TRANSLATIONS", implode(
", ", $this->pm->getLanguages($a_set[
"wpage_id"])));
78 $this->tpl->parseCurrentBlock();
80 $this->tpl->setVariable(
"ID", $a_set[
"wpage_id"]);
81 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
82 if ($a_set[
"new_pages"]) {
83 $this->tpl->setVariable(
"NEW_PAGES_CHECKED",
'checked="checked"');
85 if ($a_set[
"add_to_page"]) {
86 $this->tpl->setVariable(
"ADD_TO_PAGE_CHECKED",
'checked="checked"');
TableGUI class for wiki page templates.
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...
setFormAction(string $a_form_action, bool $a_multipart=false)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
Class handles translation mode for an object.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
ILIAS Wiki Page PageManager $pm
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_wiki_id)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
addMultiCommand(string $a_cmd, string $a_text)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...