original_string: 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(),
              '/'
          );
      }
code: 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(),
              '/'
          );
      }
code_tokens: 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 ( ) , '/' ) ; }
docstring: 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
docstring_tokens: Returns the web accessible link to this entity .