PHP Class opensrs\backwardcompatibility\dataconversion\DataConversion

Inheritance: extends opensrs\Base
Datei anzeigen Open project: opensrs/osrs-toolkit-php

Public Methods

Method Description
convertDataObject ( $dataObject, $newStructure ) 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.
convertOldFieldsToNew ( $dataObject, $newStructure )

Method Details

convertDataObject() public method

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 )

convertOldFieldsToNew() public method

public convertOldFieldsToNew ( $dataObject, $newStructure )