original_string: 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();
              }
          }
      }
code: 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();
              }
          }
      }
code_tokens: 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 ( ) ; } } }
docstring: Handles a submitted zone data
docstring_tokens: Handles a submitted zone data