You are here

public function MigrateFormattedNumberFieldHandler::__construct in Migrate Extras 6.2

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 MigrateValueFieldHandler::__construct

File

./formatted_number.inc, line 12
Support for the Formatted number module.

Class

MigrateFormattedNumberFieldHandler
Field handler.

Code

public function __construct() {
  $this
    ->registerTypes(array(
    'formatted_tinyint',
    'formatted_tinyint_unsigned',
    'formatted_smallint',
    'formatted_smallint_unsigned',
    'formatted_mediumint',
    'formatted_mediumint_unsigned',
    'formatted_integer',
    'formatted_integer_unsigned',
    'formatted_bigint',
    'formatted_bigint_unsigned',
    'formatted_decimal',
    'formatted_float',
  ));
}