protected function submitEditZone()
    {
        if ($this->isPosted('delete')) {
            $this->deleteZone();
        } else if ($this->isPosted('save') && $this->validateEditZone()) {
            if (isset($this->data_zone['zone_id'])) {
                $this->updateZone();
            } else {
                $this->addZone();
            }
        }
    }
protected function submitEditZone()
    {
        if ($this->isPosted('delete')) {
            $this->deleteZone();
        } else if ($this->isPosted('save') && $this->validateEditZone()) {
            if (isset($this->data_zone['zone_id'])) {
                $this->updateZone();
            } else {
                $this->addZone();
            }
        }
    }
protected function submitEditZone ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteZone ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditZone ( ) ) { if ( isset ( $ this -> data_zone [ 'zone_id' ] ) ) { $ this -> updateZone ( ) ; } else { $ this -> addZone ( ) ; } } }
Handles a submitted zone data
Handles a submitted zone data