\lloc\Msls\ContentImportImportCoordinates

Summary

Methods
Properties
Constants
validate()
get_importer_for()
parse_importers_from_request()
set_importer_for()
$source_blog_id
$source_post_id
$dest_blog_id
$dest_post_id
$source_post
$source_lang
$dest_lang
$importers
IMPORTERS_GLOBAL_KEY
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

IMPORTERS_GLOBAL_KEY

IMPORTERS_GLOBAL_KEY

Properties

$source_blog_id

$source_blog_id : integer

Type

integer

$source_post_id

$source_post_id : integer

Type

integer

$dest_blog_id

$dest_blog_id : integer

Type

integer

$dest_post_id

$dest_post_id : integer

Type

integer

$source_post

$source_post : \WP_Post

Type

\WP_Post

$source_lang

$source_lang : string

Type

string

$dest_lang

$dest_lang : string

Type

string

$importers

$importers : array

Type

array — An array keeping track of which importer (slug) should be used for a specific import type, shape [ <import-type> => <slug> ]

Methods

validate()

validate() : boolean

Validates the coordinates.

Returns

boolean

get_importer_for()

get_importer_for(string  $importer_type) : string|null

Returns the importer (slug) for a specific type of imports.

Parameters

string $importer_type

Returns

string|null —

The import slug if set or null if not set.

parse_importers_from_request()

parse_importers_from_request() 

Parses the importers from request superglobals.

set_importer_for()

set_importer_for(string  $importer_type, string  $slug) 

Sets the slug of the importer that should be used for a type of import.

Parameters

string $importer_type
string $slug