public function Link($short = false)
    {
        if ($this->getIsDefaultEntity()) {
            $base = Controller::join_links(
                Director::baseURL(),
                Config::inst()->get('DocumentationViewer', 'link_base'),
                $this->getLanguage(),
                '/'
            );
        } else {
            $base = Controller::join_links(
                Director::baseURL(),
                Config::inst()->get('DocumentationViewer', 'link_base'),
                $this->getLanguage(),
                $this->getKey(),
                '/'
            );
        }

        if ($short && $this->stable) {
            return $base;
        }

        return Controller::join_links(
            $base,
            $this->getVersion(),
            '/'
        );
    }
public function Link($short = false)
    {
        if ($this->getIsDefaultEntity()) {
            $base = Controller::join_links(
                Director::baseURL(),
                Config::inst()->get('DocumentationViewer', 'link_base'),
                $this->getLanguage(),
                '/'
            );
        } else {
            $base = Controller::join_links(
                Director::baseURL(),
                Config::inst()->get('DocumentationViewer', 'link_base'),
                $this->getLanguage(),
                $this->getKey(),
                '/'
            );
        }

        if ($short && $this->stable) {
            return $base;
        }

        return Controller::join_links(
            $base,
            $this->getVersion(),
            '/'
        );
    }
public function Link ( $ short = false ) { if ( $ this -> getIsDefaultEntity ( ) ) { $ base = Controller :: join_links ( Director :: baseURL ( ) , Config :: inst ( ) -> get ( 'DocumentationViewer' , 'link_base' ) , $ this -> getLanguage ( ) , '/' ) ; } else { $ base = Controller :: join_links ( Director :: baseURL ( ) , Config :: inst ( ) -> get ( 'DocumentationViewer' , 'link_base' ) , $ this -> getLanguage ( ) , $ this -> getKey ( ) , '/' ) ; } if ( $ short && $ this -> stable ) { return $ base ; } return Controller :: join_links ( $ base , $ this -> getVersion ( ) , '/' ) ; }
Returns the web accessible link to this entity.

Includes the version information

@param  boolean $short If true, will attempt to return a short version of the url
This might omit the version number if this is the default version.
@return string
Returns the web accessible link to this entity .