original_string: public function setFieldData($newFieldData)
      {
          $trackEngine = $this->getTrackEngine();
  
          if (! $trackEngine) {
              return $newFieldData;
          }
  
          $this->_fieldData = $this->processFieldsBeforeSave($newFieldData);
          $changes          = $this->saveFields(array());
  
          if ($changes) {
              $info = $trackEngine->getFieldsDefinition()->calculateFieldsInfo($this->_fieldData);
  
              if ($info != $this->_respTrackData['gr2t_track_info']) {
                  $this->_updateTrack(array('gr2t_track_info' => $info), $this->currentUser->getUserId());
              }
          }
  
          return $this->_fieldData;
      }
code: public function setFieldData($newFieldData)
      {
          $trackEngine = $this->getTrackEngine();
  
          if (! $trackEngine) {
              return $newFieldData;
          }
  
          $this->_fieldData = $this->processFieldsBeforeSave($newFieldData);
          $changes          = $this->saveFields(array());
  
          if ($changes) {
              $info = $trackEngine->getFieldsDefinition()->calculateFieldsInfo($this->_fieldData);
  
              if ($info != $this->_respTrackData['gr2t_track_info']) {
                  $this->_updateTrack(array('gr2t_track_info' => $info), $this->currentUser->getUserId());
              }
          }
  
          return $this->_fieldData;
      }
code_tokens: public function setFieldData ( $ newFieldData ) { $ trackEngine = $ this -> getTrackEngine ( ) ; if ( ! $ trackEngine ) { return $ newFieldData ; } $ this -> _fieldData = $ this -> processFieldsBeforeSave ( $ newFieldData ) ; $ changes = $ this -> saveFields ( array ( ) ) ; if ( $ changes ) { $ info = $ trackEngine -> getFieldsDefinition ( ) -> calculateFieldsInfo ( $ this -> _fieldData ) ; if ( $ info != $ this -> _respTrackData [ 'gr2t_track_info' ] ) { $ this -> _updateTrack ( array ( 'gr2t_track_info' => $ info ) , $ this -> currentUser -> getUserId ( ) ) ; } } return $ this -> _fieldData ; }
docstring: Update one or more values for this track's fields.
  
  Return the complete set of fielddata
  
  @param array $newFieldData The new field values, may be partial, field set by code overwrite field set by key
  @return array
docstring_tokens: Update one or more values for this track s fields .