original_string: public function getLinkMain() {
          if($this->currentPageID()!=0 && $this->class=='CodeBankEditSnippet') {
              return $this->LinkWithSearch(Controller::join_links($this->Link('show'), $this->currentPageID()));
          }else if($this->currentPageID()!=0 && $this->class=='CodeBank') {
              $otherID=null;
              if(!empty($this->urlParams['OtherID']) && is_numeric($this->urlParams['OtherID'])) {
                  $otherID=intval($this->urlParams['OtherID']);
              }
              
              return $this->LinkWithSearch(Controller::join_links($this->Link('show'), $this->currentPageID(), $otherID));
          }
          
          return $this->LinkWithSearch(singleton('CodeBank')->Link());
      }
code: public function getLinkMain() {
          if($this->currentPageID()!=0 && $this->class=='CodeBankEditSnippet') {
              return $this->LinkWithSearch(Controller::join_links($this->Link('show'), $this->currentPageID()));
          }else if($this->currentPageID()!=0 && $this->class=='CodeBank') {
              $otherID=null;
              if(!empty($this->urlParams['OtherID']) && is_numeric($this->urlParams['OtherID'])) {
                  $otherID=intval($this->urlParams['OtherID']);
              }
              
              return $this->LinkWithSearch(Controller::join_links($this->Link('show'), $this->currentPageID(), $otherID));
          }
          
          return $this->LinkWithSearch(singleton('CodeBank')->Link());
      }
code_tokens: public function getLinkMain ( ) { if ( $ this -> currentPageID ( ) != 0 && $ this -> class == 'CodeBankEditSnippet' ) { return $ this -> LinkWithSearch ( Controller :: join_links ( $ this -> Link ( 'show' ) , $ this -> currentPageID ( ) ) ) ; } else if ( $ this -> currentPageID ( ) != 0 && $ this -> class == 'CodeBank' ) { $ otherID = null ; if ( ! empty ( $ this -> urlParams [ 'OtherID' ] ) && is_numeric ( $ this -> urlParams [ 'OtherID' ] ) ) { $ otherID = intval ( $ this -> urlParams [ 'OtherID' ] ) ; } return $ this -> LinkWithSearch ( Controller :: join_links ( $ this -> Link ( 'show' ) , $ this -> currentPageID ( ) , $ otherID ) ) ; } return $ this -> LinkWithSearch ( singleton ( 'CodeBank' ) -> Link ( ) ) ; }
docstring: Gets the main tab link
  @return {string} URL to the main tab
docstring_tokens: Gets the main tab link