5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 public function __construct($a_parent_obj, $a_parent_cmd, $a_wiki_id)
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
31 $this->access = $DIC->access();
33 $lng = $DIC->language();
34 $ilAccess = $DIC->access();
35 $lng = $DIC->language();
37 parent::__construct($a_parent_obj, $a_parent_cmd);
38 include_once(
"./Modules/Wiki/classes/class.ilWikiPageTemplate.php");
40 $this->
setData($templates->getAllInfo());
43 $this->
addColumn($this->lng->txt(
""),
"",
"1");
44 $this->
addColumn($this->lng->txt(
"title"),
"title");
45 $this->
addColumn($this->lng->txt(
"wiki_templ_new_pages"),
"");
46 $this->
addColumn($this->lng->txt(
"wiki_templ_add_to_page"),
"");
52 $this->
setRowTemplate(
"tpl.wiki_page_templates_row.html",
"Modules/Wiki");
63 $this->tpl->setVariable(
"ID", $a_set[
"wpage_id"]);
64 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
65 if ($a_set[
"new_pages"]) {
66 $this->tpl->setVariable(
"NEW_PAGES_CHECKED",
'checked="checked"');
68 if ($a_set[
"add_to_page"]) {
69 $this->tpl->setVariable(
"ADD_TO_PAGE_CHECKED",
'checked="checked"');
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $a_wiki_id)
Constructor.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
TableGUI class for wiki page templates.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
fillRow($a_set)
Fill table row.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.