class NodeJsonSerializer extends AbstractJsonSerializer (View source)

Json Serialization handler for Node.

Properties

protected $em

Methods

mixed
serialize(mixed $obj)

Serializes data.

__construct(EntityManager $em)

No description

array
toArray(Node[] $nodes)

Create a simple associative array with a Node.

bool
hasHome()

No description

makeNodeRec($data)

No description

mixed
deserialize(string $string)

Deserializes a Json into readable datas.

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

__construct(EntityManager $em)

Parameters

EntityManager $em

array toArray(Node[] $nodes)

Create a simple associative array with a Node.

Parameters

Node[] $nodes

Return Value

array

protected bool hasHome()

Return Value

bool

protected Node makeNodeRec($data)

Parameters

$data

Return Value

Node

Exceptions

EntityAlreadyExistsException
EntityNotFoundException

mixed deserialize(string $string)

Deserializes a Json into readable datas.

Parameters

string $string Input to deserialize

Return Value

mixed