protected function submitEditCity()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCity();
        } else if ($this->isPosted('save') && $this->validateEditCity()) {
            if (isset($this->data_city['city_id'])) {
                $this->updateCity();
            } else {
                $this->addCity();
            }
        }
    }
protected function submitEditCity()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCity();
        } else if ($this->isPosted('save') && $this->validateEditCity()) {
            if (isset($this->data_city['city_id'])) {
                $this->updateCity();
            } else {
                $this->addCity();
            }
        }
    }
protected function submitEditCity ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteCity ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditCity ( ) ) { if ( isset ( $ this -> data_city [ 'city_id' ] ) ) { $ this -> updateCity ( ) ; } else { $ this -> addCity ( ) ; } } }
Handles a submitted city
Handles a submitted city