5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
20 function __construct($a_parent_obj, $a_parent_cmd, $a_wiki_id)
25 include_once(
"./Modules/Wiki/classes/class.ilWikiPageTemplate.php");
27 $this->
setData($templates->getAllInfo());
30 $this->
addColumn($this->lng->txt(
""),
"",
"1");
31 $this->
addColumn($this->lng->txt(
"title"),
"title");
32 $this->
addColumn($this->lng->txt(
"wiki_templ_new_pages"),
"");
33 $this->
addColumn($this->lng->txt(
"wiki_templ_add_to_page"),
"");
39 $this->
setRowTemplate(
"tpl.wiki_page_templates_row.html",
"Modules/Wiki");
41 $this->
addMultiCommand(
"remove", $lng->txt(
"wiki_remove_template_status"));
50 $this->tpl->setVariable(
"ID", $a_set[
"wpage_id"]);
51 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
52 if ($a_set[
"new_pages"])
54 $this->tpl->setVariable(
"NEW_PAGES_CHECKED",
'checked="checked"');
56 if ($a_set[
"add_to_page"])
58 $this->tpl->setVariable(
"ADD_TO_PAGE_CHECKED",
'checked="checked"');