5include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
    7define (
"IL_WIKI_ALL_PAGES", 
"all");
 
    8define (
"IL_WIKI_NEW_PAGES", 
"new");
 
    9define (
"IL_WIKI_POPULAR_PAGES", 
"popular");
 
   10define (
"IL_WIKI_WHAT_LINKS_HERE", 
"what_links");
 
   11define (
"IL_WIKI_ORPHANED_PAGES", 
"orphaned");
 
   29                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   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%");
 
   71                switch($this->pg_list_mode)
 
   74                                $this->
setTitle(sprintf(
$lng->txt(
"wiki_what_links_to_page"),
 
   79                                $this->
setTitle($lng->txt(
"wiki_".$a_mode.
"_pages"));
 
   89                include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
   94                switch ($this->pg_list_mode)
 
  124                        include_once(
"./Services/User/classes/class.ilUserUtil.php");   
 
  125                        foreach(array_keys($pages) as $idx)
 
  136                if ($a_field == 
"cnt")
 
  153                        $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
 
  154                        $this->tpl->setVariable(
"DATE",
 
  159                        $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
 
  160                        $this->tpl->setVariable(
"HITS", $a_set[
"cnt"]);
 
  164                        $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
 
  165                        $this->tpl->setVariable(
"DATE",
 
  168                $this->tpl->setVariable(
"HREF_PAGE",
 
  172                include_once(
"./Services/User/classes/class.ilUserUtil.php");
 
  173                $this->tpl->setVariable(
"TXT_USER",
 
  175                        $ilCtrl->getLinkTarget($this->getParentObject(), $this->getParentCmd())
 
const IL_WIKI_POPULAR_PAGES
const IL_WIKI_ORPHANED_PAGES
const IL_WIKI_WHAT_LINKS_HERE
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
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)
Default behaviour is:
static getNewPages($a_wiki_id)
Get all pages of wiki
static getOrphanedPages($a_wiki_id)
Get orphaned pages of wiki
static getAllPages($a_wiki_id)
Get all pages of wiki
static getLinksToPage($a_wiki_id, $a_page_id)
Get links to a page
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static getPopularPages($a_wiki_id)
Get popular pages of wiki
TableGUI class for wiki pages table.
fillRow($a_set)
Standard Version of Fill Row.
getPages()
Get pages for list.
ilWikiPagesTableGUI($a_parent_obj, $a_parent_cmd="", $a_wiki_id, $a_mode=IL_WIKI_ALL_PAGES, $a_page_id=0)
numericOrdering($a_field)
Should this field be sorted numeric?