public function addImportContainer($label)
    {
        $import = $this->addContainer($label);

        $page = $import->addPage($this->_('Answers'), 'pr.survey-maintenance.answer-import', 'file-import', 'answers-import');
        $uplPage = $import->addFilePage($this->_('Importable'), 'pr.file-import', 'file-import');
        // $page->addButtonOnly($this->_('Auto import'), 'pr.file-import.auto', 'file-import', 'auto');
        $uplPage->addImportAction('pr.file-import.import', array('label' => $this->_('Import file')))
                ->setModelParameters(1);

        $impPage = $import->addFilePage($this->_('Imported files'), 'pr.file-import', 'imported-files');
        $impPage->addImportAction('pr.file-import.import', array('label' => $this->_('Reimport file')))
                ->setModelParameters(1);

        $errPage = $import->addFilePage($this->_('Imported failures'), 'pr.file-import', 'imported-failures');
        $errPage->addImportAction('pr.file-import.import', array('label' => $this->_('Retry import')))
                ->setModelParameters(1);

        return $import;
    }
public function addImportContainer($label)
    {
        $import = $this->addContainer($label);

        $page = $import->addPage($this->_('Answers'), 'pr.survey-maintenance.answer-import', 'file-import', 'answers-import');
        $uplPage = $import->addFilePage($this->_('Importable'), 'pr.file-import', 'file-import');
        // $page->addButtonOnly($this->_('Auto import'), 'pr.file-import.auto', 'file-import', 'auto');
        $uplPage->addImportAction('pr.file-import.import', array('label' => $this->_('Import file')))
                ->setModelParameters(1);

        $impPage = $import->addFilePage($this->_('Imported files'), 'pr.file-import', 'imported-files');
        $impPage->addImportAction('pr.file-import.import', array('label' => $this->_('Reimport file')))
                ->setModelParameters(1);

        $errPage = $import->addFilePage($this->_('Imported failures'), 'pr.file-import', 'imported-failures');
        $errPage->addImportAction('pr.file-import.import', array('label' => $this->_('Retry import')))
                ->setModelParameters(1);

        return $import;
    }
public function addImportContainer ( $ label ) { $ import = $ this -> addContainer ( $ label ) ; $ page = $ import -> addPage ( $ this -> _ ( 'Answers' ) , 'pr.survey-maintenance.answer-import' , 'file-import' , 'answers-import' ) ; $ uplPage = $ import -> addFilePage ( $ this -> _ ( 'Importable' ) , 'pr.file-import' , 'file-import' ) ; // $page->addButtonOnly($this->_('Auto import'), 'pr.file-import.auto', 'file-import', 'auto'); $ uplPage -> addImportAction ( 'pr.file-import.import' , array ( 'label' => $ this -> _ ( 'Import file' ) ) ) -> setModelParameters ( 1 ) ; $ impPage = $ import -> addFilePage ( $ this -> _ ( 'Imported files' ) , 'pr.file-import' , 'imported-files' ) ; $ impPage -> addImportAction ( 'pr.file-import.import' , array ( 'label' => $ this -> _ ( 'Reimport file' ) ) ) -> setModelParameters ( 1 ) ; $ errPage = $ import -> addFilePage ( $ this -> _ ( 'Imported failures' ) , 'pr.file-import' , 'imported-failures' ) ; $ errPage -> addImportAction ( 'pr.file-import.import' , array ( 'label' => $ this -> _ ( 'Retry import' ) ) ) -> setModelParameters ( 1 ) ; return $ import ; }
Shortcut function to create the import container.

@param string $label Label for the container
@return \Gems_Menu_MenuAbstract The new contact page
Shortcut function to create the import container .