4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
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 $data = array(
"page_id" => 0) +
45 $this->
addColumn($this->lng->txt(
"wiki_ordering"),
"order");
46 $this->
addColumn($this->lng->txt(
"wiki_indentation"));
47 $this->
addColumn($this->lng->txt(
"wiki_page"));
48 $this->
addColumn($this->lng->txt(
"wiki_purpose"));
68 if ($a_set[
"page_id"] > 0) {
69 $this->tpl->setCurrentBlock(
"cb");
70 $this->tpl->setVariable(
"PAGE_ID", $a_set[
"page_id"]);
71 $this->tpl->parseCurrentBlock();
73 $this->tpl->setCurrentBlock(
"ord");
74 $this->tpl->setVariable(
"PAGE_ID_ORD", $a_set[
"page_id"]);
75 $this->tpl->setVariable(
"VAL_ORD", $a_set[
"ord"]);
76 $this->tpl->parseCurrentBlock();
78 $this->tpl->setVariable(
82 $this->tpl->setVariable(
86 "indent[" . $a_set[
"page_id"] .
"]",
87 array(0 =>
"0", 1 =>
"1", 2 =>
"2"),
93 $this->tpl->setVariable(
98 $this->tpl->setVariable(
100 $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.
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)