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;
    }
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;
    }
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 ; }
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
Update one or more values for this track s fields .