/** * WikiView - Constructor */ function WikiView(&$controler, $id = 0, $view = null) { parent::view($controler, $view); $this->gid = (int) $id; // Parameters for HTML rendering $this->html_params['group'] = $this->gid; $this->html_params['toptab'] = 'plugin_phpwiki'; // Wikize project name $pm = ProjectManager::instance(); $go = $pm->getProject($this->gid); $this->wikiname = ucfirst($go->getUnixName()) . 'Wiki'; // Build convenients URL $this->wikiLink = PHPWIKI_PLUGIN_BASE_URL . '/index.php?group_id=' . $this->gid; $this->wikiAdminLink = PHPWIKI_PLUGIN_BASE_URL . '/admin/index.php?group_id=' . $this->gid; }