public function import_from_client() {
        if(!Permission::check('ADMIN')) {
            Security::permissionFailure($this);
            return;
        }
        
        $form=$this->ImportFromClientForm();
        if(Session::get('reloadOnImportDialogClose')) {
            Requirements::javascript(CB_DIR.'/javascript/CodeBank.ImportDialog.js');
            Session::clear('reloadOnImportDialogClose');
        }
        
        return $this->customise(array(
                                    'Content'=>' ',
                                    'Form'=>$form
                                ))->renderWith('CMSDialog');
    }
public function import_from_client() {
        if(!Permission::check('ADMIN')) {
            Security::permissionFailure($this);
            return;
        }
        
        $form=$this->ImportFromClientForm();
        if(Session::get('reloadOnImportDialogClose')) {
            Requirements::javascript(CB_DIR.'/javascript/CodeBank.ImportDialog.js');
            Session::clear('reloadOnImportDialogClose');
        }
        
        return $this->customise(array(
                                    'Content'=>' ',
                                    'Form'=>$form
                                ))->renderWith('CMSDialog');
    }
public function import_from_client ( ) { if ( ! Permission :: check ( 'ADMIN' ) ) { Security :: permissionFailure ( $ this ) ; return ; } $ form = $ this -> ImportFromClientForm ( ) ; if ( Session :: get ( 'reloadOnImportDialogClose' ) ) { Requirements :: javascript ( CB_DIR . '/javascript/CodeBank.ImportDialog.js' ) ; Session :: clear ( 'reloadOnImportDialogClose' ) ; } return $ this -> customise ( array ( 'Content' => ' ' , 'Form' => $ form ) ) -> renderWith ( 'CMSDialog' ) ; }
Handles requests for the import from client popup
@return {string} Rendered template
Handles requests for the import from client popup