IMigrator
in
Tags
Table of Contents
Methods
- canImport() : bool
- Checks whether it is able to import a version of the export format for this migrator Use $importSource->getMigratorVersion($this->getId()) to get the version from the archive
- export() : void
- Export user data
- getDescription() : string
- Returns the description
- getDisplayName() : string
- Returns the display name
- getId() : string
- Returns the unique ID
- getVersion() : int
- Returns the version of the export format for this migrator
- import() : void
- Import user data
Methods
canImport()
Checks whether it is able to import a version of the export format for this migrator Use $importSource->getMigratorVersion($this->getId()) to get the version from the archive
public
canImport(IImportSource $importSource) : bool
Parameters
- $importSource : IImportSource
Tags
Return values
boolexport()
Export user data
public
export(IUser $user, IExportDestination $exportDestination, OutputInterface $output) : void
Parameters
- $user : IUser
- $exportDestination : IExportDestination
- $output : OutputInterface
Tags
getDescription()
Returns the description
public
getDescription() : string
Tags
Return values
stringgetDisplayName()
Returns the display name
public
getDisplayName() : string
Tags
Return values
stringgetId()
Returns the unique ID
public
getId() : string
Tags
Return values
stringgetVersion()
Returns the version of the export format for this migrator
public
getVersion() : int
Tags
Return values
intimport()
Import user data
public
import(IUser $user, IImportSource $importSource, OutputInterface $output) : void
Parameters
- $user : IUser
- $importSource : IImportSource
- $output : OutputInterface