class SettingCollectionJsonSerializer extends AbstractJsonSerializer (View source)

Serialization class for Setting.

Methods

mixed
serialize(mixed $obj)

Serializes data.

array
toArray(ArrayCollection $settingGroups)

Create a simple associative array with an ArrayCollection of SettingGroup.

mixed
deserialize(string $jsonString)

Deserializes a json file into a readable ArrayCollection of setting.

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

array toArray(ArrayCollection $settingGroups)

Create a simple associative array with an ArrayCollection of SettingGroup.

Parameters

ArrayCollection $settingGroups

Return Value

array

mixed deserialize(string $jsonString)

Deserializes a json file into a readable ArrayCollection of setting.

Parameters

string $jsonString

Return Value

mixed

Exceptions

Exception