You are here

protected function MigrateHandler::registerTypes in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/handler.inc \MigrateHandler::registerTypes()

Register a list of types handled by this class

Parameters

array $types:

11 calls to MigrateHandler::registerTypes()
MigrateEmailFieldHandler::__construct in plugins/destinations/fields.inc
MigrateFieldsNodeHandler::__construct in plugins/destinations/fields.inc
MigrateFileFieldHandler::__construct in plugins/destinations/fields.inc
MigrateNodeReferenceFieldHandler::__construct in plugins/destinations/fields.inc
Construct a simple field handler.
MigratePathNodeHandler::__construct in plugins/destinations/path.inc

... See full list

File

includes/handler.inc, line 39
Defines the base class for destination handlers.

Class

MigrateHandler
Abstract base class for destination handlers. Handler objects are expected to implement appropriate methods (e.g., prepare, complete, or fields).

Code

protected function registerTypes(array $types) {

  // Make the type names the keys
  foreach ($types as $type) {
    $type = strtolower($type);
    $this->typesHandled[$type] = $type;
  }
}