opensrs\backwardcompatibility\dataconversion\DataConversion::convertDataObject PHP 메소드

convertDataObject() 공개 메소드

Method to convert original $data object structure to match the structure that the actual API uses This is for backward compatibility with older implementations that make use of this toolkit. It will not be run on newer implementations that send that data pre- formatted in the new structure.
public convertDataObject ( $dataObject, $newStructure )
    public function convertDataObject($dataObject, $newStructure)
    {
        // Run our data objects through the field conversion
        // method
        // We're only doing one thing here at the moment,
        // however we may need to do more in the future, so
        // just breaking out each specific part5 of the
        // conversion process to a different method, juuuuust
        // in case
        $newDataObject = $this->convertOldFieldsToNew($dataObject, $newStructure);
        return $newDataObject;
    }