You are here

public function MigrateValueFieldHandler::__construct in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/destinations/fields.inc \MigrateValueFieldHandler::__construct()

Construct a simple field handler.

Parameters

$options: Array of options (rather than unnamed parameters so you don't have to what TRUE or FALSE means). The following keys are used:

  • 'value_key' string with the name of the key in the fields value array.
  • 'skip_empty' Boolean indicating that empty values should not be saved.

Overrides MigrateSimpleFieldHandler::__construct

File

plugins/destinations/fields.inc, line 246
Support for processing CCK fields

Class

MigrateValueFieldHandler

Code

public function __construct() {
  parent::__construct(array(
    'value_key' => 'value',
    'skip_empty' => FALSE,
  ));
  $this
    ->registerTypes(array(
    'value',
    'list',
    'list_boolean',
    'list_number',
    'list_text',
    'number_integer',
    'number_decimal',
    'number_float',
  ));
}