class MigrateItoggleFieldHandler in iToggle 7.2
iToggle Field Migrate Field Handler Class
This field only accepts one value and it can either be a simple 1 or 0 integer or a boolean.
$this
->addFieldMapping('field_itoggle', 1);
$this
->addFieldMapping('field_itoggle', FALSE);
Hierarchy
- class \MigrateHandler
- class \MigrateFieldHandler
- class \MigrateSimpleFieldHandler
- class \MigrateItoggleFieldHandler
- class \MigrateSimpleFieldHandler
- class \MigrateFieldHandler
Expanded class hierarchy of MigrateItoggleFieldHandler
1 string reference to 'MigrateItoggleFieldHandler'
- itoggle_field_migrate_api in modules/
field/ itoggle_field.migrate.inc - Implements hook_migrate_api().
File
- modules/
field/ itoggle_field.migrate.inc, line 30 - Migrate integration for iToggle Field.
View source
class MigrateItoggleFieldHandler extends MigrateSimpleFieldHandler {
public function __construct() {
parent::__construct(array(
'value_key' => 'value',
'skip_empty' => FALSE,
));
$this
->registerTypes(array(
'itoggle_field',
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateFieldHandler:: |
function | Determine the language of the field. | ||
MigrateHandler:: |
protected | property | List of other handler classes which should be invoked before the current one. | |
MigrateHandler:: |
protected | property | List of "types" handled by this handler. Depending on the kind of handler, these may be destination types, field types, etc. | |
MigrateHandler:: |
public | function | ||
MigrateHandler:: |
public | function | ||
MigrateHandler:: |
public | function | Does this handler handle the given type? | 1 |
MigrateHandler:: |
protected | function | Register a list of types handled by this class | |
MigrateItoggleFieldHandler:: |
public | function |
Construct a simple field handler. Overrides MigrateSimpleFieldHandler:: |
|
MigrateSimpleFieldHandler:: |
protected | property | ||
MigrateSimpleFieldHandler:: |
protected | property | ||
MigrateSimpleFieldHandler:: |
protected | function | Returns TRUE only for values which are not NULL. | 2 |
MigrateSimpleFieldHandler:: |
public | function |