original_string: public function getFormData($groupErrors = true)
      {
          if (!self::$registered) {
              HTML_QuickForm2_Renderer::register('smarty', 'HTML_QuickForm2_Renderer_Smarty');
              self::$registered = true;
          }
  
          // Create the renderer object
          $renderer = HTML_QuickForm2_Renderer::factory('smarty');
          $renderer->setOption('group_errors', $groupErrors);
  
          // build the HTML for the form
          $this->render($renderer);
  
          return $renderer->toArray();
      }
code: public function getFormData($groupErrors = true)
      {
          if (!self::$registered) {
              HTML_QuickForm2_Renderer::register('smarty', 'HTML_QuickForm2_Renderer_Smarty');
              self::$registered = true;
          }
  
          // Create the renderer object
          $renderer = HTML_QuickForm2_Renderer::factory('smarty');
          $renderer->setOption('group_errors', $groupErrors);
  
          // build the HTML for the form
          $this->render($renderer);
  
          return $renderer->toArray();
      }
code_tokens: public function getFormData ( $ groupErrors = true ) { if ( ! self :: $ registered ) { HTML_QuickForm2_Renderer :: register ( 'smarty' , 'HTML_QuickForm2_Renderer_Smarty' ) ; self :: $ registered = true ; } // Create the renderer object $ renderer = HTML_QuickForm2_Renderer :: factory ( 'smarty' ) ; $ renderer -> setOption ( 'group_errors' , $ groupErrors ) ; // build the HTML for the form $ this -> render ( $ renderer ) ; return $ renderer -> toArray ( ) ; }
docstring: Returns the rendered form as an array.
  
  @param bool $groupErrors Whether to group errors together or not.
  @return array
docstring_tokens: Returns the rendered form as an array .