You are here

public static function MigrationBase::staticInitialize in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/base.inc \MigrationBase::staticInitialize()

Initialize static members, before any class instances are created.

1 call to MigrationBase::staticInitialize()
base.inc in includes/base.inc
Defines the base class for migration processes.

File

includes/base.inc, line 342
Defines the base class for migration processes.

Class

MigrationBase
The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…

Code

public static function staticInitialize() {

  // Default the displayFunction outputFunction based on context
  if (function_exists('drush_log')) {
    self::$displayFunction = 'drush_log';
  }
  else {
    self::$displayFunction = 'drupal_set_message';
  }
}