original_string: public function addForm(QuickForm2 $form)
      {
  
          // assign array with form data
          $this->assign('form_data', $form->getFormData());
          $this->assign('element_list', $form->getElementList());
      }
code: public function addForm(QuickForm2 $form)
      {
  
          // assign array with form data
          $this->assign('form_data', $form->getFormData());
          $this->assign('element_list', $form->getElementList());
      }
code_tokens: public function addForm ( QuickForm2 $ form ) { // assign array with form data $ this -> assign ( 'form_data' , $ form -> getFormData ( ) ) ; $ this -> assign ( 'element_list' , $ form -> getElementList ( ) ) ; }
docstring: Add form to view
  
  @param QuickForm2 $form
  @ignore
docstring_tokens: Add form to view