original_string: public function importAction()
      {
          $controller   = $this->getRequest()->getControllerName();
          $importLoader = $this->loader->getImportLoader();
          $model        = $this->getModel();
  
          $params = array();
          $params['defaultImportTranslator'] = $importLoader->getDefaultTranslator($controller);
          $params['formatBoxClass']          = 'browser table';
          $params['importer']                = $importLoader->getImporter($controller, $model);
          $params['model']                   = $model;
          $params['tempDirectory']           = $importLoader->getTempDirectory();
          $params['importTranslators']       = $importLoader->getTranslators($controller);
  
          $this->addSnippets($this->importSnippets, $params);
      }
code: public function importAction()
      {
          $controller   = $this->getRequest()->getControllerName();
          $importLoader = $this->loader->getImportLoader();
          $model        = $this->getModel();
  
          $params = array();
          $params['defaultImportTranslator'] = $importLoader->getDefaultTranslator($controller);
          $params['formatBoxClass']          = 'browser table';
          $params['importer']                = $importLoader->getImporter($controller, $model);
          $params['model']                   = $model;
          $params['tempDirectory']           = $importLoader->getTempDirectory();
          $params['importTranslators']       = $importLoader->getTranslators($controller);
  
          $this->addSnippets($this->importSnippets, $params);
      }
code_tokens: public function importAction ( ) { $ controller = $ this -> getRequest ( ) -> getControllerName ( ) ; $ importLoader = $ this -> loader -> getImportLoader ( ) ; $ model = $ this -> getModel ( ) ; $ params = array ( ) ; $ params [ 'defaultImportTranslator' ] = $ importLoader -> getDefaultTranslator ( $ controller ) ; $ params [ 'formatBoxClass' ] = 'browser table' ; $ params [ 'importer' ] = $ importLoader -> getImporter ( $ controller , $ model ) ; $ params [ 'model' ] = $ model ; $ params [ 'tempDirectory' ] = $ importLoader -> getTempDirectory ( ) ; $ params [ 'importTranslators' ] = $ importLoader -> getTranslators ( $ controller ) ; $ this -> addSnippets ( $ this -> importSnippets , $ params ) ; }
docstring: Generic model based import action
docstring_tokens: Generic model based import action