You are here

class MigrateHmsFieldHandler in HMS Field 8

Same name and namespace in other branches
  1. 7 hms_field.migrate.inc \MigrateHmsFieldHandler

Migrate handler for HMS fields, so we can import values to these fields. You should give the integer (seconds) value to the mapping.

Hierarchy

Expanded class hierarchy of MigrateHmsFieldHandler

File

./hms_field.migrate.inc, line 12
Support for the Migrate API.

View source
class MigrateHmsFieldHandler extends MigrateSimpleFieldHandler {

  /**
   * This does all the work. Mainly register the field type.
   */
  public function __construct() {
    parent::__construct(array(
      'value_key' => 'value',
      'skip_empty' => FALSE,
    ));
    $this
      ->registerTypes(array(
      'hms_field',
    ));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateHmsFieldHandler::__construct public function This does all the work. Mainly register the field type.