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());
    }
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());
    }
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 ( ) ) ; }
Gets the main tab link
@return {string} URL to the main tab
Gets the main tab link