class NodeSourceXlsxSerializer extends AbstractXlsxSerializer (View source)

XLSX Serialization handler for NodeSource.

Properties

protected EntityManager $em
protected Request $request
protected $forceLocale
protected $addUrls
protected $onlyTexts

Methods

mixed
serialize(mixed $obj)

Serializes data.

__construct(EntityManager $em)

No description

array
toArray(NodesSources|Collection|array $nodeSource)

Create a simple associative array with a NodeSource.

array
getSourceFields(NodesSources $nodeSource)

No description

array
getFields(NodeType $nodeType)

No description

mixed
deserialize(string $string)

Deserializes a json file into a readable array of datas.

setOnlyTexts(boolean $onlyTexts = true)

Serialize only texts.

addUrls(Request $request, bool $forceLocale = false)

No description

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

__construct(EntityManager $em)

Parameters

EntityManager $em

array toArray(NodesSources|Collection|array $nodeSource)

Create a simple associative array with a NodeSource.

Parameters

NodesSources|Collection|array $nodeSource

Return Value

array

protected array getSourceFields(NodesSources $nodeSource)

Parameters

NodesSources $nodeSource

Return Value

array

protected array getFields(NodeType $nodeType)

Parameters

NodeType $nodeType

Return Value

array

mixed deserialize(string $string)

Deserializes a json file into a readable array of datas.

Parameters

string $string Input to deserialize

Return Value

mixed

setOnlyTexts(boolean $onlyTexts = true)

Serialize only texts.

Parameters

boolean $onlyTexts

addUrls(Request $request, bool $forceLocale = false)

Parameters

Request $request
bool $forceLocale