24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
26 define (
"IL_WIKI_ALL_PAGES",
"all");
27 define (
"IL_WIKI_NEW_PAGES",
"new");
28 define (
"IL_WIKI_POPULAR_PAGES",
"popular");
29 define (
"IL_WIKI_WHAT_LINKS_HERE",
"what_links");
30 define (
"IL_WIKI_ORPHANED_PAGES",
"orphaned");
49 $this->pg_list_mode = $a_mode;
50 $this->wiki_id = $a_wiki_id;
51 $this->page_id = $a_page_id;
53 switch($this->pg_list_mode)
56 $this->
addColumn($lng->txt(
"created"),
"",
"33%");
57 $this->
addColumn($lng->txt(
"wiki_page"),
"",
"33%");
58 $this->
addColumn($lng->txt(
"wiki_created_by"),
"",
"34%");
64 $this->
addColumn($lng->txt(
"wiki_page"),
"",
"50%");
65 $this->
addColumn($lng->txt(
"wiki_page_hits"),
"",
"50%");
71 $this->
addColumn($lng->txt(
"wiki_page"),
"",
"100%");
77 $this->
addColumn($lng->txt(
"wiki_page"),
"",
"33%");
78 $this->
addColumn($lng->txt(
"wiki_last_changed"),
"",
"33%");
79 $this->
addColumn($lng->txt(
"wiki_last_changed_by"),
"",
"34%");
88 switch($this->pg_list_mode)
91 $this->
setTitle(sprintf($lng->txt(
"wiki_what_links_to_page"),
96 $this->
setTitle($lng->txt(
"wiki_".$a_mode.
"_pages"));
106 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
111 switch ($this->pg_list_mode)
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",
174 $this->tpl->setVariable(
"TXT_LINKED_USER",
175 $user[
"lastname"].
", ".
$user[
"firstname"].
" [".$login.
"]");
178 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user", $a_set[
"user"]);
179 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"back_url",
180 rawurlencode($ilCtrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd())));
181 $this->tpl->setVariable(
"USER_LINK",
182 $ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"getHTML"));
184 $this->tpl->setVariable(
"IMG_USER",
$img);