Library/Documentation/Template.php
public function url($url)
    {
        if (\is_string($url)) {
            if ('/' == $url[0]) {
                return $this->getPathToRoot().ltrim($url, '/');
            } elseif (\is_string($url)) {
                return $url;
            }
        } elseif ($url instanceof ClassDefinition) {
            return $this->url(Documentation::classUrl($url));
        } elseif ($url instanceof CompilerFile) {
            return $this->url(Documentation::classUrl($url->getClassDefinition()));
        }

        return '';
    }
public function url($url)
    {
        if (\is_string($url)) {
            if ('/' == $url[0]) {
                return $this->getPathToRoot().ltrim($url, '/');
            } elseif (\is_string($url)) {
                return $url;
            }
        } elseif ($url instanceof ClassDefinition) {
            return $this->url(Documentation::classUrl($url));
        } elseif ($url instanceof CompilerFile) {
            return $this->url(Documentation::classUrl($url->getClassDefinition()));
        }

        return '';
    }
public function url ( $ url ) { if ( \ is_string ( $ url ) ) { if ( '/' == $ url [ 0 ] ) { return $ this -> getPathToRoot ( ) . ltrim ( $ url , '/' ) ; } elseif ( \ is_string ( $ url ) ) { return $ url ; } } elseif ( $ url instanceof ClassDefinition ) { return $ this -> url ( Documentation :: classUrl ( $ url ) ) ; } elseif ( $ url instanceof CompilerFile ) { return $ this -> url ( Documentation :: classUrl ( $ url -> getClassDefinition ( ) ) ) ; } return '' ; }
Generate an url relative to the current directory.

@param string $url the url we want to reach

@return string the relative path to the url
Generate an url relative to the current directory .