original_string: function updateSubmission($submission, $files) {
          $this->_flagSubmitted = false;
  
          if (empty($submission)) {
              $this->_submitValues = array();
          } else {
              foreach ($submission as $key => $s) {
                  $type = $this->getCleanType($key, $s);
                  $submission[$key] = $this->getCleanedValue($s, $type);
              }
              $this->_submitValues = $submission;
              $this->_flagSubmitted = true;
          }
  
          if (empty($files)) {
              $this->_submitFiles = array();
          } else {
              $this->_submitFiles = $files;
              $this->_flagSubmitted = true;
          }
  
          // need to tell all elements that they need to update their value attribute.
           foreach (array_keys($this->_elements) as $key) {
               $this->_elements[$key]->onQuickFormEvent('updateValue', null, $this);
           }
      }
code: function updateSubmission($submission, $files) {
          $this->_flagSubmitted = false;
  
          if (empty($submission)) {
              $this->_submitValues = array();
          } else {
              foreach ($submission as $key => $s) {
                  $type = $this->getCleanType($key, $s);
                  $submission[$key] = $this->getCleanedValue($s, $type);
              }
              $this->_submitValues = $submission;
              $this->_flagSubmitted = true;
          }
  
          if (empty($files)) {
              $this->_submitFiles = array();
          } else {
              $this->_submitFiles = $files;
              $this->_flagSubmitted = true;
          }
  
          // need to tell all elements that they need to update their value attribute.
           foreach (array_keys($this->_elements) as $key) {
               $this->_elements[$key]->onQuickFormEvent('updateValue', null, $this);
           }
      }
code_tokens: function updateSubmission ( $ submission , $ files ) { $ this -> _flagSubmitted = false ; if ( empty ( $ submission ) ) { $ this -> _submitValues = array ( ) ; } else { foreach ( $ submission as $ key => $ s ) { $ type = $ this -> getCleanType ( $ key , $ s ) ; $ submission [ $ key ] = $ this -> getCleanedValue ( $ s , $ type ) ; } $ this -> _submitValues = $ submission ; $ this -> _flagSubmitted = true ; } if ( empty ( $ files ) ) { $ this -> _submitFiles = array ( ) ; } else { $ this -> _submitFiles = $ files ; $ this -> _flagSubmitted = true ; } // need to tell all elements that they need to update their value attribute. foreach ( array_keys ( $ this -> _elements ) as $ key ) { $ this -> _elements [ $ key ] -> onQuickFormEvent ( 'updateValue' , null , $ this ) ; } }
docstring: Updates submitted values
  
  @param array $submission submitted values
  @param array $files list of files
docstring_tokens: Updates submitted values