public function getCurrentDocumentSet()
    {
        if ($id = $this->getRequest()->getVar('dsid')) {
            return DMSDocumentSet::get()->byId($id);
        }
        return singleton('DMSDocumentSet');
    }
public function getCurrentDocumentSet()
    {
        if ($id = $this->getRequest()->getVar('dsid')) {
            return DMSDocumentSet::get()->byId($id);
        }
        return singleton('DMSDocumentSet');
    }
public function getCurrentDocumentSet ( ) { if ( $ id = $ this -> getRequest ( ) -> getVar ( 'dsid' ) ) { return DMSDocumentSet :: get ( ) -> byId ( $ id ) ; } return singleton ( 'DMSDocumentSet' ) ; }
Get the current document set, if a document set ID was provided

@return DMSDocumentSet
Get the current document set if a document set ID was provided