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; }
function getAncestorsRecurse($id, &$cats, &$ancestors) { $cat = new StdClass(); $cat->name = $cats[$id]->name; $cat->title = $cats[$id]->title; $sef = defined('_DM_J15') ? false : true; $cat->link = DOCMAN_Utils::taskLink('cat_view', $id, null, $sef); $ancestors[] =& $cat; $id = $cats[$id]->parent; if ($id != 0) { DOCMAN_Cats::getAncestorsRecurse($id, $cats, $ancestors); } }
function _taskLink($task, $gid = '', $params = null, $sef = true) { return DOCMAN_Utils::taskLink($task, $gid, $params, $sef); }