/** * WikiServiceViews - Constructor */ function PHPWikiServiceViews(&$controler, $id = 0, $view = null) { $this->purifier = Codendi_HTMLPurifier::instance(); parent::WikiView($controler, $id, $view); $pm = ProjectManager::instance(); if (isset($_REQUEST['pagename']) && !is_null($_REQUEST['pagename'])) { $this->html_params['title'] = $GLOBALS['Language']->getText('plugin_phpwiki_views_wikiserviceviews', 'wiki_page_title', array($this->purifier->purify($_REQUEST['pagename'], CODENDI_PURIFIER_CONVERT_HTML), $pm->getProject($this->gid)->getPublicName())); $this->base_url = PHPWIKI_PLUGIN_BASE_URL . '/index.php?group_id=' . $this->gid . '&pagename=' . urlencode($_REQUEST['pagename']); } else { $this->html_params['title'] = $GLOBALS['Language']->getText('plugin_phpwiki_views_wikiserviceviews', 'wiki_title', array($pm->getProject($this->gid)->getPublicName())); $this->base_url = PHPWIKI_PLUGIN_BASE_URL . '/index.php?group_id=' . $this->gid; } $GLOBALS['wiki_view'] =& $this; }
/** * WikiServiceAdminViews - Constructor */ function PHPWikiServiceAdminViews(&$controler, $id = 0) { parent::WikiView($controler, $id); $pm = ProjectManager::instance(); $this->html_params['title'] = $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'title', array($pm->getProject($this->gid)->getPublicName())); }