Beta version

class GroupCollectionJsonSerializer extends AbstractJsonSerializer

Serialization class for Group.

Methods

string
serialize(mixed $obj)

Serializes data.

__construct(EntityManager $em)

No description

array
toArray(ArrayCollection $groups)

Create a simple associative array with an entity.

ArrayCollection
deserialize(string $string)

Deserializes a json file into a readable array of datas.

Details

string serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

string

at line 46
__construct(EntityManager $em)

Parameters

EntityManager $em

at line 59
array toArray(ArrayCollection $groups)

Create a simple associative array with an entity.

Parameters

ArrayCollection $groups

Return Value

array

at line 77
ArrayCollection deserialize(string $string)

Deserializes a json file into a readable array of datas.

Parameters

string $string Input to deserialize

Return Value

ArrayCollection