public function getFormattedContent(PHPWikiPage $wiki_page, PHPWikiPageVersion $version)
 {
     $request = $this->wrapper->getRequest();
     $request->initializeTheme();
     require_once PHPWIKI_SRC_PATH . '/lib/Template.php';
     $template = new Template(self::PHPWIKI_TEMPLATE, $request, $this->getTransformedContent($wiki_page, $version, $request));
     ob_start();
     $template->printExpansion();
     return ob_get_clean();
 }
Exemplo n.º 2
0
 private function getIndexablePageFromDefaultAndAdminPages(array &$indexable_pages)
 {
     $default_pages_used = array_merge($this->getAllInternalPages(), $this->getAdminPages());
     foreach ($default_pages_used as $default_page_name) {
         $wiki_page = new PHPWikiPage($this->gid, $default_page_name);
         $version = $this->wrapper->getRequest()->getPage($default_page_name)->getCurrentRevision()->getVersion();
         if ($version > 1) {
             $indexable_pages[] = $wiki_page;
         }
     }
 }
Exemplo n.º 3
0
 /**
  * @return int
  */
 public function getCurrentVersion()
 {
     return $this->wrapper->getRequest()->getPage($this->pagename)->getCurrentRevision()->getVersion();
 }