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();
            }
        }
    }
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();
            }
        }
    }
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 ( ) ; } } }
Saves a submitted country data
Saves a submitted country data