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();
            }
        }
    }
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();
            }
        }
    }
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 ( ) ; } } }
Handles a submitted currency data
Handles a submitted currency data