SerializationManager

Contains methods that allow us to convert data from one complex data structure format to another complex data structure format

package

Default

Methods

TODO - review from TS

classToJson() 

TODO - review from TS

classToObject() 

TODO - review from TS

hashMapObjectToClass() 

Convert a JavaPropertiesObject instance to a string that is valid so it can be saved to a .properties file.

javaPropertiesObjectToString(\org\turbocommons\src\main\php\model\JavaPropertiesObject $javaProperties) : string

Arguments

$javaProperties

\org\turbocommons\src\main\php\model\JavaPropertiesObject

An instance of a JavaPropertiesObject

Response

string

An ISO-8859-1 string containing valid properties data, ready to be stored as a .properties java format file.

jsonToClass

jsonToClass() 

objectToClass

objectToClass() 

Convert a string containing the contents of a Java properties file to a JavaPropertiesObject instance Note that the input string must be encoded with ISO-8859-1 and strictly follow the Java properties file format (Otherwise results may not be correct).

stringToJavaPropertiesObject(string $string) : \org\turbocommons\src\main\php\model\JavaPropertiesObject

Arguments

$string

string

String containing the contents of a .properties Java file

Response

\org\turbocommons\src\main\php\model\JavaPropertiesObject

The properties format parsed as an object

Properties

When set to true, the structures that are passed as serialization sources must match the structures that are passed as serialization targets: All keys or properties that are defined on the serialization sources must exist on the serialization targets, otherwise an exception will be thrown

strictMode : 

Type(s)