original_string: public function getForm($hideGroup = false)
      {
          $form = new \Gems_Form();
          $form->setAttrib('target', '_blank');
  
          if ($hideGroup) {
              $element = new \Zend_Form_Element_Hidden('group');
          } else {
              $element = new \Zend_Form_Element_Checkbox('group');
              $element->setLabel($this->_('Group surveys'));
          }
          $element->setValue(1);
          $form->addElement($element);
  
          $element = new \Zend_Form_Element_Select('format');
          $element->setLabel($this->_('Output format'));
          $outputFormats = array('html' => 'HTML');
          if ($this->_pdf->hasPdfExport()) {
              $outputFormats['pdf'] = 'PDF';
              $element->setValue('pdf');
          }
          $element->setMultiOptions($outputFormats);
          $form->addElement($element);
  
          $element = new \Zend_Form_Element_Submit('export');
          $element->setLabel($this->_('Export'))
                  ->setAttrib('class', 'button');
          $form->addElement($element);
  
          $links = $this->menu->getMenuList();
          $links->addParameterSources($this->request, $this->menu->getParameterSource());
          $links->addCurrentParent($this->_('Cancel'));
          if (count($links)) {
              $element = new \MUtil_Form_Element_Html('menuLinks');
              $element->setValue($links);
              // $element->setOrder(999);
              $form->addElement($element);
          }
  
          return $form;
      }
code: public function getForm($hideGroup = false)
      {
          $form = new \Gems_Form();
          $form->setAttrib('target', '_blank');
  
          if ($hideGroup) {
              $element = new \Zend_Form_Element_Hidden('group');
          } else {
              $element = new \Zend_Form_Element_Checkbox('group');
              $element->setLabel($this->_('Group surveys'));
          }
          $element->setValue(1);
          $form->addElement($element);
  
          $element = new \Zend_Form_Element_Select('format');
          $element->setLabel($this->_('Output format'));
          $outputFormats = array('html' => 'HTML');
          if ($this->_pdf->hasPdfExport()) {
              $outputFormats['pdf'] = 'PDF';
              $element->setValue('pdf');
          }
          $element->setMultiOptions($outputFormats);
          $form->addElement($element);
  
          $element = new \Zend_Form_Element_Submit('export');
          $element->setLabel($this->_('Export'))
                  ->setAttrib('class', 'button');
          $form->addElement($element);
  
          $links = $this->menu->getMenuList();
          $links->addParameterSources($this->request, $this->menu->getParameterSource());
          $links->addCurrentParent($this->_('Cancel'));
          if (count($links)) {
              $element = new \MUtil_Form_Element_Html('menuLinks');
              $element->setValue($links);
              // $element->setOrder(999);
              $form->addElement($element);
          }
  
          return $form;
      }
code_tokens: public function getForm ( $ hideGroup = false ) { $ form = new \ Gems_Form ( ) ; $ form -> setAttrib ( 'target' , '_blank' ) ; if ( $ hideGroup ) { $ element = new \ Zend_Form_Element_Hidden ( 'group' ) ; } else { $ element = new \ Zend_Form_Element_Checkbox ( 'group' ) ; $ element -> setLabel ( $ this -> _ ( 'Group surveys' ) ) ; } $ element -> setValue ( 1 ) ; $ form -> addElement ( $ element ) ; $ element = new \ Zend_Form_Element_Select ( 'format' ) ; $ element -> setLabel ( $ this -> _ ( 'Output format' ) ) ; $ outputFormats = array ( 'html' => 'HTML' ) ; if ( $ this -> _pdf -> hasPdfExport ( ) ) { $ outputFormats [ 'pdf' ] = 'PDF' ; $ element -> setValue ( 'pdf' ) ; } $ element -> setMultiOptions ( $ outputFormats ) ; $ form -> addElement ( $ element ) ; $ element = new \ Zend_Form_Element_Submit ( 'export' ) ; $ element -> setLabel ( $ this -> _ ( 'Export' ) ) -> setAttrib ( 'class' , 'button' ) ; $ form -> addElement ( $ element ) ; $ links = $ this -> menu -> getMenuList ( ) ; $ links -> addParameterSources ( $ this -> request , $ this -> menu -> getParameterSource ( ) ) ; $ links -> addCurrentParent ( $ this -> _ ( 'Cancel' ) ) ; if ( count ( $ links ) ) { $ element = new \ MUtil_Form_Element_Html ( 'menuLinks' ) ; $ element -> setValue ( $ links ) ; // $element->setOrder(999); $ form -> addElement ( $ element ) ; } return $ form ; }
docstring: Constructs the form
  
  @param boolean $hideGroup When true group checkbox is hidden
  @return \Gems_Form_TableForm
docstring_tokens: Constructs the form