protected function getCurrentImporter()
    {
        $handlers = $this->getAvailableImportHandlers();

        if ($this->hasRequestParameter('importHandler')) {
            foreach ($handlers as $importHandler) {
                if (get_class($importHandler) == $_POST['importHandler']) {
                    return $importHandler;
                }
            }
        }

        $availableImportHandlers = $this->getAvailableImportHandlers();
        $currentImporter = reset($availableImportHandlers);

        return $currentImporter;
    }
protected function getCurrentImporter()
    {
        $handlers = $this->getAvailableImportHandlers();

        if ($this->hasRequestParameter('importHandler')) {
            foreach ($handlers as $importHandler) {
                if (get_class($importHandler) == $_POST['importHandler']) {
                    return $importHandler;
                }
            }
        }

        $availableImportHandlers = $this->getAvailableImportHandlers();
        $currentImporter = reset($availableImportHandlers);

        return $currentImporter;
    }
protected function getCurrentImporter ( ) { $ handlers = $ this -> getAvailableImportHandlers ( ) ; if ( $ this -> hasRequestParameter ( 'importHandler' ) ) { foreach ( $ handlers as $ importHandler ) { if ( get_class ( $ importHandler ) == $ _POST [ 'importHandler' ] ) { return $ importHandler ; } } } $ availableImportHandlers = $ this -> getAvailableImportHandlers ( ) ; $ currentImporter = reset ( $ availableImportHandlers ) ; return $ currentImporter ; }
Returns the currently selected import handler
or the import handler to use by default

@return tao_models_classes_import_ImportHandler
Returns the currently selected import handler or the import handler to use by default