original_string: protected function configureEdit($fields = null)
      {
          // We are actually in the frame!
          if ($this->isEditing('edit')) {
              $m = $this->form->setModel($this->model, $fields);
              $m->load($this->id);
              $this->form->addSubmit();
              $this->form->onSubmit(array($this, 'formSubmit'));
  
              return $m;
          } elseif ($this->isEditing()) {
              return;
          }
  
          $this
              ->virtual_page
              ->addColumn(
                  'edit',
                  'Editing '.$this->entity_name,
                  array('descr' => 'Edit', 'icon' => 'pencil'),
                  $this->grid
              );
      }
code: protected function configureEdit($fields = null)
      {
          // We are actually in the frame!
          if ($this->isEditing('edit')) {
              $m = $this->form->setModel($this->model, $fields);
              $m->load($this->id);
              $this->form->addSubmit();
              $this->form->onSubmit(array($this, 'formSubmit'));
  
              return $m;
          } elseif ($this->isEditing()) {
              return;
          }
  
          $this
              ->virtual_page
              ->addColumn(
                  'edit',
                  'Editing '.$this->entity_name,
                  array('descr' => 'Edit', 'icon' => 'pencil'),
                  $this->grid
              );
      }
code_tokens: protected function configureEdit ( $ fields = null ) { // We are actually in the frame! if ( $ this -> isEditing ( 'edit' ) ) { $ m = $ this -> form -> setModel ( $ this -> model , $ fields ) ; $ m -> load ( $ this -> id ) ; $ this -> form -> addSubmit ( ) ; $ this -> form -> onSubmit ( array ( $ this , 'formSubmit' ) ) ; return $ m ; } elseif ( $ this -> isEditing ( ) ) { return ; } $ this -> virtual_page -> addColumn ( 'edit' , 'Editing ' . $ this -> entity_name , array ( 'descr' => 'Edit' , 'icon' => 'pencil' ) , $ this -> grid ) ; }
docstring: Configures necessary components when CRUD is in the editing mode.
  
  @param array $fields List of fields for add form
  
  @return void|Model If model, then bail out, no greed needed
docstring_tokens: Configures necessary components when CRUD is in the editing mode .