function _formatLink($task, $params = array(), $sef = true, $indexfile = 'index.php', $token = false) { global $_DOCMAN; require_once $_DOCMAN->getPath('classes', 'token'); if ($token) { $params[DOCMAN_token::get(false)] = 1; } $link = DOCMAN_Utils::taskLink($task, $this->objDBTable->id, $params, $sef, $indexfile); return $link; }