PHP Class opensrs\backwardcompatibility\dataconversion\DataConversion

Inheritance: extends opensrs\Base
Afficher le fichier Open project: opensrs/osrs-toolkit-php

Méthodes publiques

Méthode 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 méthode

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 méthode

public convertOldFieldsToNew ( $dataObject, $newStructure )