public function addSnippet(SS_HTTPRequest $request)  {
        if($request->getVar('Type')=='SnippetFolder') {
            return $this->redirect(Controller::join_links($this->Link('addFolder'), '?FolderID='.str_replace('folder-', '', $request->getVar('ID'))));
        }else {
            return $this->redirect(Controller::join_links($this->Link('add'), '?LanguageID='.str_replace('language-', '', $request->getVar('ID'))));
        }
    }
public function addSnippet(SS_HTTPRequest $request)  {
        if($request->getVar('Type')=='SnippetFolder') {
            return $this->redirect(Controller::join_links($this->Link('addFolder'), '?FolderID='.str_replace('folder-', '', $request->getVar('ID'))));
        }else {
            return $this->redirect(Controller::join_links($this->Link('add'), '?LanguageID='.str_replace('language-', '', $request->getVar('ID'))));
        }
    }
public function addSnippet ( SS_HTTPRequest $ request ) { if ( $ request -> getVar ( 'Type' ) == 'SnippetFolder' ) { return $ this -> redirect ( Controller :: join_links ( $ this -> Link ( 'addFolder' ) , '?FolderID=' . str_replace ( 'folder-' , '' , $ request -> getVar ( 'ID' ) ) ) ) ; } else { return $ this -> redirect ( Controller :: join_links ( $ this -> Link ( 'add' ) , '?LanguageID=' . str_replace ( 'language-' , '' , $ request -> getVar ( 'ID' ) ) ) ) ; } }
Handles requests to add a snippet or folder to a language
@param {SS_HTTPRequest} $request HTTP Request
Handles requests to add a snippet or folder to a language