4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
33 $this->ctrl = $DIC->ctrl();
34 $this->lng = $DIC->language();
35 $this->access = $DIC->access();
36 $ilCtrl = $DIC->ctrl();
37 $lng = $DIC->language();
38 $ilAccess = $DIC->access();
39 $lng = $DIC->language();
44 $data = array(
"page_id" => 0) +
51 $this->
addColumn($this->lng->txt(
"wiki_ordering"),
"order");
52 $this->
addColumn($this->lng->txt(
"wiki_indentation"));
53 $this->
addColumn($this->lng->txt(
"wiki_page"));
54 $this->
addColumn($this->lng->txt(
"wiki_purpose"));
74 if ($a_set[
"page_id"] > 0) {
75 $this->tpl->setCurrentBlock(
"cb");
76 $this->tpl->setVariable(
"PAGE_ID", $a_set[
"page_id"]);
77 $this->tpl->parseCurrentBlock();
79 $this->tpl->setCurrentBlock(
"ord");
80 $this->tpl->setVariable(
"PAGE_ID_ORD", $a_set[
"page_id"]);
81 $this->tpl->setVariable(
"VAL_ORD", $a_set[
"ord"]);
82 $this->tpl->parseCurrentBlock();
84 $this->tpl->setVariable(
88 $this->tpl->setVariable(
92 "indent[" . $a_set[
"page_id"] .
"]",
93 array(0 =>
"0", 1 =>
"1", 2 =>
"2"),
99 if ($this->templates->isPageTemplate((
int) $a_set[
"page_id"])) {
100 $this->tpl->setVariable(
102 $lng->txt(
"wiki_page_template")
106 $this->tpl->setVariable(
111 $this->tpl->setVariable(
113 $lng->txt(
"wiki_start_page")
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static _lookupImportantPagesList($a_wiki_id)
Get important pages list.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
fillRow($a_set)
Fill table row.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
__construct(Container $dic, ilPlugin $plugin)
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
setLimit($a_limit=0, $a_default_limit=0)