original_string: protected function submitEditStore()
      {
          if ($this->isPosted('delete')) {
              $this->deleteStore();
          } else if ($this->isPosted('save') && $this->validateEditStore()) {
              if (isset($this->data_store['store_id'])) {
                  $this->updateStore();
              } else {
                  $this->addStore();
              }
          }
      }
code: protected function submitEditStore()
      {
          if ($this->isPosted('delete')) {
              $this->deleteStore();
          } else if ($this->isPosted('save') && $this->validateEditStore()) {
              if (isset($this->data_store['store_id'])) {
                  $this->updateStore();
              } else {
                  $this->addStore();
              }
          }
      }
code_tokens: protected function submitEditStore ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteStore ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditStore ( ) ) { if ( isset ( $ this -> data_store [ 'store_id' ] ) ) { $ this -> updateStore ( ) ; } else { $ this -> addStore ( ) ; } } }
docstring: Handles a submitted store data
docstring_tokens: Handles a submitted store data