original_string: protected function submitEditCurrency()
      {
          if ($this->isPosted('delete')) {
              $this->deleteCurrency();
          } else if ($this->isPosted('save') && $this->validateEditCurrency()) {
              if (isset($this->data_currency['code'])) {
                  $this->updateCurrency();
              } else {
                  $this->addCurrency();
              }
          }
      }
code: protected function submitEditCurrency()
      {
          if ($this->isPosted('delete')) {
              $this->deleteCurrency();
          } else if ($this->isPosted('save') && $this->validateEditCurrency()) {
              if (isset($this->data_currency['code'])) {
                  $this->updateCurrency();
              } else {
                  $this->addCurrency();
              }
          }
      }
code_tokens: protected function submitEditCurrency ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteCurrency ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditCurrency ( ) ) { if ( isset ( $ this -> data_currency [ 'code' ] ) ) { $ this -> updateCurrency ( ) ; } else { $ this -> addCurrency ( ) ; } } }
docstring: Handles a submitted currency data
docstring_tokens: Handles a submitted currency data