original_string: public function editAction()
      {
          if ($form = $this->processForm()) {
              if ($this->useTabbedForms && method_exists($this, 'getSubject')) {
                  $data = $this->getModel()->loadFirst();
                  $subject = $this->getSubject($data);
                  $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));
              } else {
                  $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));
              }
              $this->html[] = $form;
          }
      }
code: public function editAction()
      {
          if ($form = $this->processForm()) {
              if ($this->useTabbedForms && method_exists($this, 'getSubject')) {
                  $data = $this->getModel()->loadFirst();
                  $subject = $this->getSubject($data);
                  $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));
              } else {
                  $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));
              }
              $this->html[] = $form;
          }
      }
code_tokens: public function editAction ( ) { if ( $ form = $ this -> processForm ( ) ) { if ( $ this -> useTabbedForms && method_exists ( $ this , 'getSubject' ) ) { $ data = $ this -> getModel ( ) -> loadFirst ( ) ; $ subject = $ this -> getSubject ( $ data ) ; $ this -> setPageTitle ( sprintf ( $ this -> _ ( 'Edit %s %s' ) , $ this -> getTopic ( 1 ) , $ subject ) ) ; } else { $ this -> setPageTitle ( sprintf ( $ this -> _ ( 'Edit %s' ) , $ this -> getTopic ( 1 ) ) ) ; } $ this -> html [ ] = $ form ; } }
docstring: Creates a form to edit
  
  Uses $this->getModel()
  $this->addFormElements()
docstring_tokens: Creates a form to edit