Blesta Source Documentation

ImportManagerImporter extends ImportManagerModel

Import Manager Importer

Table of Contents

Methods

getMigrator() Return a migrator
getMigrators() Returns all migrators available
getVersions() Returns all versions available for the given migrator type
runMigrator() Runs the migrator
Methods

getMigrator()

Return a migrator

public getMigrator(mixed $type) : mixed
Parameters
$type : mixed
Return values
mixed

A stdClass object representing the migrator, null if it does not exist

getMigrators()

Returns all migrators available

public getMigrators() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of migrators

getVersions()

Returns all versions available for the given migrator type

public getVersions(string $type) : array<string|int, mixed>
Parameters
$type : string

The migrator type

Return values
array<string|int, mixed>

An array of versions available

runMigrator()

Runs the migrator

public runMigrator(string $type, string $version, array<string|int, mixed> $vars) : mixed
Parameters
$type : string

The type of migrator (dir in /import_manager/components/migrators/)

$version : string

The version of the migrator to run (dir in /import_manager/components/migrators/$type/)

$vars : array<string|int, mixed>

An array of migrator specific details

Tags
subpackage

plugins.importer

copyright

Copyright (c) 2010, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results