original_string: protected function submitEditFile()
      {
          if ($this->isPosted('delete') && isset($this->data_file['file_id'])) {
              $this->deleteFile();
          } else if ($this->isPosted('save') && $this->validateEditFile()) {
              if (isset($this->data_file['file_id'])) {
                  $this->updateFile();
              } else {
                  $this->addFile();
              }
          }
      }
code: protected function submitEditFile()
      {
          if ($this->isPosted('delete') && isset($this->data_file['file_id'])) {
              $this->deleteFile();
          } else if ($this->isPosted('save') && $this->validateEditFile()) {
              if (isset($this->data_file['file_id'])) {
                  $this->updateFile();
              } else {
                  $this->addFile();
              }
          }
      }
code_tokens: protected function submitEditFile ( ) { if ( $ this -> isPosted ( 'delete' ) && isset ( $ this -> data_file [ 'file_id' ] ) ) { $ this -> deleteFile ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditFile ( ) ) { if ( isset ( $ this -> data_file [ 'file_id' ] ) ) { $ this -> updateFile ( ) ; } else { $ this -> addFile ( ) ; } } }
docstring: Saves an array of submitted values
docstring_tokens: Saves an array of submitted values