original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Handles requests for the import from client popup
  @return {string} Rendered template
docstring_tokens: Handles requests for the import from client popup