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");
32 $this->ctrl = $DIC->ctrl();
33 $this->lng = $DIC->language();
35 $lng = $DIC->language();
37 parent::__construct($a_parent_obj, $a_parent_cmd);
38 $this->pg_list_mode = $a_mode;
39 $this->wiki_id = $a_wiki_id;
40 $this->page_id = $a_page_id;
42 switch ($this->pg_list_mode) {
46 $this->
addColumn(
$lng->txt(
"wiki_created_by"),
"user_sort",
"34%");
48 "tpl.table_row_wiki_new_page.html",
57 "tpl.table_row_wiki_popular_page.html",
65 "tpl.table_row_wiki_orphaned_page.html",
72 $this->
addColumn(
$lng->txt(
"wiki_last_changed"),
"date",
"33%");
73 $this->
addColumn(
$lng->txt(
"wiki_last_changed_by"),
"user_sort",
"34%");
75 "tpl.table_row_wiki_page.html",
86 switch ($this->pg_list_mode) {
89 $lng->txt(
"wiki_what_links_to_page"),
95 $this->
setTitle(
$lng->txt(
"wiki_" . $a_mode .
"_pages"));
105 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
110 switch ($this->pg_list_mode) {
138 include_once(
"./Services/User/classes/class.ilUserUtil.php");
139 foreach (array_keys($pages) as $idx) {
149 if ($a_field ==
"cnt") {
165 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
166 $this->tpl->setVariable(
171 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
172 $this->tpl->setVariable(
"HITS", $a_set[
"cnt"]);
174 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
175 $this->tpl->setVariable(
180 $this->tpl->setVariable(
186 include_once(
"./Services/User/classes/class.ilUserUtil.php");
187 $this->tpl->setVariable(
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
const IL_WIKI_POPULAR_PAGES
static getNewWikiPages($a_wiki_id)
Get all pages of wiki.
static getPopularPages($a_wiki_id)
Get popular pages of wiki.
__construct( $a_parent_obj, $a_parent_cmd="", $a_wiki_id, $a_mode=IL_WIKI_ALL_PAGES, $a_page_id=0)
TableGUI class for wiki pages table.
getParentCmd()
Get parent command.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
getPages()
Get pages for list.
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static getAllWikiPages($a_wiki_id)
Get all pages of wiki.
static getOrphanedPages($a_wiki_id)
Get orphaned pages of wiki.
fillRow($a_set)
Standard Version of Fill Row.
const IL_WIKI_WHAT_LINKS_HERE
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.
const IL_WIKI_ORPHANED_PAGES
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
static getLinksToPage($a_wiki_id, $a_page_id)
Get links to a page.
numericOrdering($a_field)