5 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
7 define (
"IL_WIKI_ALL_PAGES",
"all");
8 define (
"IL_WIKI_NEW_PAGES",
"new");
9 define (
"IL_WIKI_POPULAR_PAGES",
"popular");
10 define (
"IL_WIKI_WHAT_LINKS_HERE",
"what_links");
11 define (
"IL_WIKI_ORPHANED_PAGES",
"orphaned");
30 $this->pg_list_mode = $a_mode;
31 $this->wiki_id = $a_wiki_id;
32 $this->page_id = $a_page_id;
34 switch($this->pg_list_mode)
37 $this->
addColumn($lng->txt(
"created"),
"created",
"33%");
38 $this->
addColumn($lng->txt(
"wiki_page"),
"title",
"33%");
39 $this->
addColumn($lng->txt(
"wiki_created_by"),
"user_sort",
"34%");
45 $this->
addColumn($lng->txt(
"wiki_page"),
"title",
"50%");
46 $this->
addColumn($lng->txt(
"wiki_page_hits"),
"cnt",
"50%");
52 $this->
addColumn($lng->txt(
"wiki_page"),
"title",
"100%");
58 $this->
addColumn($lng->txt(
"wiki_page"),
"title",
"33%");
59 $this->
addColumn($lng->txt(
"wiki_last_changed"),
"date",
"33%");
60 $this->
addColumn($lng->txt(
"wiki_last_changed_by"),
"user_sort",
"34%");
69 switch($this->pg_list_mode)
72 $this->
setTitle(sprintf($lng->txt(
"wiki_what_links_to_page"),
77 $this->
setTitle($lng->txt(
"wiki_".$a_mode.
"_pages"));
87 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
92 switch ($this->pg_list_mode)
122 include_once(
"./Services/User/classes/class.ilUserUtil.php");
123 foreach(array_keys($pages) as $idx)
134 if ($a_field ==
"cnt")
151 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
152 $this->tpl->setVariable(
"DATE",
157 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
158 $this->tpl->setVariable(
"HITS", $a_set[
"cnt"]);
162 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
163 $this->tpl->setVariable(
"DATE",
166 $this->tpl->setVariable(
"HREF_PAGE",
170 include_once(
"./Services/User/classes/class.ilUserUtil.php");
171 $this->tpl->setVariable(
"TXT_USER",
173 $ilCtrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd())