fullpath = $nodepath; $temp = preg_split('#/#', $this->fullpath, -1, PREG_SPLIT_NO_EMPTY); $this->repos = $temp[0]; unset($temp[0]); $this->path = '/' . implode('/', $temp); // objects $this->registry =& $viewsvn; $this->repospath = $this->registry->repos->fetch_path($this->repos); require_once('./includes/shellcmd.php'); $this->xquery = new Shell($this); require_once('./includes/svnlib.php'); $this->library = new SVNLib($this); require_once('./includes/cachev.php'); $this->cachev = new cacheV($this); } // ################################################################### /** * Create path breadcrumb * * @access public * * @return string Breadcrumb HTML */ function construct_breadcrumb() { $html = '/ '; $itembit = '/'; $temp = preg_split('#/#', $this->path, -1, PREG_SPLIT_NO_EMPTY); $count = count($temp) - 1; foreach ($temp AS $val => $item) { $itembit .= $item; $itembit .= (($count != $val OR $this->cachev->isdir($itembit)) ? '/' : ''); $html .= '' . $item . ''. ($count != $val ? ' / ' : ''); } return $html; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>