public function deleteFolder() {
        $folder=SnippetFolder::get()->byID(intval(str_replace('folder-', '', $this->request->getVar('ID'))));
        if(empty($folder) || $folder===false || $folder->ID==0) {
            $this->response->setStatusCode(404, _t('CodeBank.FOLDER_NOT_FOUND', '_Folder could not be found'));
            return;
        }
        
        
        $folder->delete();
        
        return 'HELO';
    }
public function deleteFolder() {
        $folder=SnippetFolder::get()->byID(intval(str_replace('folder-', '', $this->request->getVar('ID'))));
        if(empty($folder) || $folder===false || $folder->ID==0) {
            $this->response->setStatusCode(404, _t('CodeBank.FOLDER_NOT_FOUND', '_Folder could not be found'));
            return;
        }
        
        
        $folder->delete();
        
        return 'HELO';
    }
public function deleteFolder ( ) { $ folder = SnippetFolder :: get ( ) -> byID ( intval ( str_replace ( 'folder-' , '' , $ this -> request -> getVar ( 'ID' ) ) ) ) ; if ( empty ( $ folder ) || $ folder === false || $ folder -> ID == 0 ) { $ this -> response -> setStatusCode ( 404 , _t ( 'CodeBank.FOLDER_NOT_FOUND' , '_Folder could not be found' ) ) ; return ; } $ folder -> delete ( ) ; return 'HELO' ; }
Deletes a folder node
Deletes a folder node