You are here

public static function MigrateGroup::getInstance in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/group.inc \MigrateGroup::getInstance()

Retrieve (creating if necessary) an instance of the named group.

Parameters

string $name: Group name.

array $dependencies: List of dependent groups.

8 calls to MigrateGroup::getInstance()
AdvancedExampleMigration::__construct in migrate_example/wine.inc
General initialization of a Migration object.
MigrationBase::__construct in includes/base.inc
General initialization of a MigrationBase object.
WineFinishMigration::__construct in migrate_example/wine.inc
General initialization of a MigrationBase object.
WinePrepMigration::__construct in migrate_example/wine.inc
General initialization of a MigrationBase object.
WineProducerMultiXMLMigration::__construct in migrate_example/wine.inc
General initialization of a Migration object.

... See full list

File

includes/group.inc, line 103
Definition for a migration group.

Class

MigrateGroup
@file Definition for a migration group.

Code

public static function getInstance($name, $dependencies = array()) {
  if (empty(self::$groupList[$name])) {
    self::$groupList[$name] = new MigrateGroup($name, $dependencies);
  }
  return self::$groupList[$name];
}