GravityKit\GravityMigrate\ExternalMigrations
Boots external importer/exporter registries and controllers.
Since: %ver%
Source: src/ExternalMigrations.php:35
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate
Properties
| Property | Type | Description |
|---|---|---|
$importers | SourceRegistry | Importer registry. |
$exporters | TargetRegistry | Exporter registry. |
$importer_controller | ImporterController | Importer AJAX controller. |
$exporter_controller | ExporterController | Exporter AJAX controller. |
Methods
| Method | Description |
|---|---|
__construct() | Constructor. |
get_instance() | Returns the shared instance, constructing it on first use. |
importers() | Returns the importer registry, fully registered. |
importer_controller() | Returns the importer AJAX controller. |
exporter_controller() | Returns the exporter AJAX controller. |
Method Reference
__construct()
public function __construct()
Constructor.
Since: %ver%
Source: src/ExternalMigrations.php:87
get_instance()
public static function get_instance(): ExternalMigrations
Returns the shared instance, constructing it on first use.
Foundation's AjaxRouter applies the route filters at admin_init priority PHP_INT_MIN, before Plugin::init() at priority 10, so an AJAX request has to be able to construct this itself.
Returns
ExternalMigrations
Since: %ver%
Source: src/ExternalMigrations.php:111
importers()
public function importers(): SourceRegistry
Returns the importer registry, fully registered.
Returns
SourceRegistry
Since: %ver%
Source: src/ExternalMigrations.php:126
importer_controller()
public function importer_controller(): ImporterController
Returns the importer AJAX controller.
Returns
ImporterController
Since: %ver%
Source: src/ExternalMigrations.php:137
exporter_controller()
public function exporter_controller(): ExporterController
Returns the exporter AJAX controller.
Returns
ExporterController
Since: %ver%
Source: src/ExternalMigrations.php:148