original_string: public function exportArchiveAction()
      {
          $params = $this->_processParameters($this->showParameters);
  
          $this->addSnippets($this->exportSnippets, $params);
  
          $this->html->h2($this->_('Export respondent archive'));
  
          //Now show the export form
          $export = $this->loader->getRespondentExport();
          $form   = $export->getForm();
          $div    = $this->html->div(array('id' => 'mainform'));
          $div[]  = $form;
  
          $request = $this->getRequest();
  
          $form->populate($request->getParams());
  
          if ($request->isPost()) {
              $respondent = $this->getRespondent();
              $patients   = array(
                  array(
                      'gr2o_id_organization' => $respondent->getOrganizationId(),
                      'gr2o_patient_nr'      => $respondent->getPatientNumber()
                      )
                  );
              $export->render($patients, $request->getParam('group'), $request->getParam('format'));
          }
      }
code: public function exportArchiveAction()
      {
          $params = $this->_processParameters($this->showParameters);
  
          $this->addSnippets($this->exportSnippets, $params);
  
          $this->html->h2($this->_('Export respondent archive'));
  
          //Now show the export form
          $export = $this->loader->getRespondentExport();
          $form   = $export->getForm();
          $div    = $this->html->div(array('id' => 'mainform'));
          $div[]  = $form;
  
          $request = $this->getRequest();
  
          $form->populate($request->getParams());
  
          if ($request->isPost()) {
              $respondent = $this->getRespondent();
              $patients   = array(
                  array(
                      'gr2o_id_organization' => $respondent->getOrganizationId(),
                      'gr2o_patient_nr'      => $respondent->getPatientNumber()
                      )
                  );
              $export->render($patients, $request->getParam('group'), $request->getParam('format'));
          }
      }
code_tokens: public function exportArchiveAction ( ) { $ params = $ this -> _processParameters ( $ this -> showParameters ) ; $ this -> addSnippets ( $ this -> exportSnippets , $ params ) ; $ this -> html -> h2 ( $ this -> _ ( 'Export respondent archive' ) ) ; //Now show the export form $ export = $ this -> loader -> getRespondentExport ( ) ; $ form = $ export -> getForm ( ) ; $ div = $ this -> html -> div ( array ( 'id' => 'mainform' ) ) ; $ div [ ] = $ form ; $ request = $ this -> getRequest ( ) ; $ form -> populate ( $ request -> getParams ( ) ) ; if ( $ request -> isPost ( ) ) { $ respondent = $ this -> getRespondent ( ) ; $ patients = array ( array ( 'gr2o_id_organization' => $ respondent -> getOrganizationId ( ) , 'gr2o_patient_nr' => $ respondent -> getPatientNumber ( ) ) ) ; $ export -> render ( $ patients , $ request -> getParam ( 'group' ) , $ request -> getParam ( 'format' ) ) ; } }
docstring: Action for dossier export
docstring_tokens: Action for dossier export