original_string: protected function submitEditCountry()
      {
          if ($this->isPosted('delete')) {
              $this->deleteCountry();
          } else if ($this->isPosted('save') && $this->validateEditCountry()) {
              if (isset($this->data_country['code'])) {
                  $this->updateCountry();
              } else {
                  $this->addCountry();
              }
          }
      }
code: protected function submitEditCountry()
      {
          if ($this->isPosted('delete')) {
              $this->deleteCountry();
          } else if ($this->isPosted('save') && $this->validateEditCountry()) {
              if (isset($this->data_country['code'])) {
                  $this->updateCountry();
              } else {
                  $this->addCountry();
              }
          }
      }
code_tokens: protected function submitEditCountry ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteCountry ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditCountry ( ) ) { if ( isset ( $ this -> data_country [ 'code' ] ) ) { $ this -> updateCountry ( ) ; } else { $ this -> addCountry ( ) ; } } }
docstring: Saves a submitted country data
docstring_tokens: Saves a submitted country data