\lloc\Msls\ContentImportRelations

Class Relations

Manages and tracks the relations between elements managed by MSLS that are created in the context of an import.

Summary

Methods
Properties
Constants
__construct()
merge()
get_data()
create()
should_create()
$to_create
No constants found
create_source_to_local()
create_local_to_source()
$local_options
$import_coordinates
N/A
No private methods found
No private properties found
N/A

Properties

$local_options

$local_options : array<mixed,\lloc\Msls\MslsOptions>

Type

array<mixed,\lloc\Msls\MslsOptions>

Methods

merge()

merge(\lloc\Msls\ContentImport\Relations|null  $relations = null) 

Merges the data from a Relations object into this one.

Parameters

\lloc\Msls\ContentImport\Relations|null $relations

get_data()

get_data() : array

Returns

array

create()

create() 

Creates the relations between the source blog elements and the destination one.

should_create()

should_create(\lloc\Msls\MslsOptions  $creator, string  $dest_lang, string  $dest_post_id) 

Sets a relation that should be created.

Parameters

\lloc\Msls\MslsOptions $creator
string $dest_lang
string $dest_post_id

create_source_to_local()

create_source_to_local() 

create_local_to_source()

create_local_to_source()