class UniversalDataDuplicator (View source)

Methods

__construct(EntityManager $em)

UniversalDataDuplicator constructor.

bool
duplicateUniversalContents(NodesSources $source)

Duplicate node-source universal to any other language source for the same node.

duplicateNonVirtualField(NodesSources $universalSource, NodesSources $destSource, NodeTypeField $field)

No description

duplicateDocumentsField(NodesSources $universalSource, NodesSources $destSource, NodeTypeField $field)

No description

Details

__construct(EntityManager $em)

UniversalDataDuplicator constructor.

Parameters

EntityManager $em

bool duplicateUniversalContents(NodesSources $source)

Duplicate node-source universal to any other language source for the same node.

Be careful, this method does not flush.

Parameters

NodesSources $source

Return Value

bool

protected duplicateNonVirtualField(NodesSources $universalSource, NodesSources $destSource, NodeTypeField $field)

Parameters

NodesSources $universalSource
NodesSources $destSource
NodeTypeField $field

protected duplicateDocumentsField(NodesSources $universalSource, NodesSources $destSource, NodeTypeField $field)

Parameters

NodesSources $universalSource
NodesSources $destSource
NodeTypeField $field