Exemple #1
0
 private function getIndexablePageFromAllUserPages(array &$indexable_pages)
 {
     $all_internal_pages = array_merge($this->getAllUserPages(), $this->wrapper->getProjectEmptyLinks());
     foreach ($all_internal_pages as $internal_page_name) {
         $wiki_page = new WikiPage($this->gid, $internal_page_name);
         if (!$wiki_page->isReferenced()) {
             $indexable_pages[] = $wiki_page;
         }
     }
 }
 /**
  * _browseProjectPages - private
  *
  * Display empty pages.
  */
 function _browseEmptyWikiPages()
 {
     $wpw = new WikiPageWrapper($this->gid);
     $allPages =& $wpw->getProjectEmptyLinks();
     $this->_browsePages($allPages);
 }
 /**
  * wikiPages - public View
  */
 function wikiPages()
 {
     echo $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_title', array($this->wikiname));
     list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_project_pages', $this->gid);
     $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>';
     echo $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_project', array($hurl));
     if (!$hideFlag) {
         print $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_pj_all');
         $allUserPages =& WikiPage::getAllUserPages();
         $this->_browsePages($allUserPages);
     }
     list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_empty_pages', $this->gid);
     $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>';
     echo $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_empty', array($hurl));
     if (!$hideFlag) {
         print $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_emp_all');
         $wpw = new WikiPageWrapper($this->gid);
         $allEmptyPages =& $wpw->getProjectEmptyLinks();
         $this->_browsePages($allEmptyPages);
     }
     list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_admin_pages', $this->gid);
     $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>';
     echo $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_admin', array($hurl));
     if (!$hideFlag) {
         print $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_adm_all');
         $allAdminPages =& WikiPage::getAllAdminPages();
         $this->_browsePages($allAdminPages);
     }
     list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_internal_pages', $this->gid, true);
     $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>';
     echo $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_intern', array($hurl));
     if (!$hideFlag) {
         print $GLOBALS['Language']->getText('wiki_views_wkserviews', 'wkpage_int_all');
         $allInternalsPages =& WikiPage::getAllInternalPages();
         $this->_browsePages($allInternalsPages);
     }
     print '<hr/><p><a href="' . $this->wikiAdminLink . '">' . $GLOBALS['Language']->getText('wiki_views_wkserviews', 'back_admin') . '</a></p>' . "\n";
 }