original_string: protected function submitEditUser()
      {
          if ($this->isPosted('delete')) {
              $this->deleteUser();
          } else if ($this->isPosted('save') && $this->validateEditUser()) {
              if (isset($this->data_user['user_id'])) {
                  $this->updateUser();
              } else {
                  $this->addUser();
              }
          }
      }
code: protected function submitEditUser()
      {
          if ($this->isPosted('delete')) {
              $this->deleteUser();
          } else if ($this->isPosted('save') && $this->validateEditUser()) {
              if (isset($this->data_user['user_id'])) {
                  $this->updateUser();
              } else {
                  $this->addUser();
              }
          }
      }
code_tokens: protected function submitEditUser ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteUser ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditUser ( ) ) { if ( isset ( $ this -> data_user [ 'user_id' ] ) ) { $ this -> updateUser ( ) ; } else { $ this -> addUser ( ) ; } } }
docstring: Handles a submitted user data
docstring_tokens: Handles a submitted user data