class MigrateEmailFieldHandler in Migrate 6.2
Hierarchy
- class \MigrateHandler
- class \MigrateFieldHandler
- class \MigrateEmailFieldHandler
- class \MigrateFieldHandler
Expanded class hierarchy of MigrateEmailFieldHandler
1 string reference to 'MigrateEmailFieldHandler'
File
- plugins/
destinations/ fields.inc, line 528 - Support for processing CCK fields
View source
class MigrateEmailFieldHandler extends MigrateFieldHandler {
public function __construct() {
$this
->registerTypes(array(
'email',
));
}
// Copied from ValueFieldHandler::prepare except the propname is email.
public function prepare($entity, array $instance, array $values) {
// Setup the standard Field API array for saving.
$delta = 0;
foreach ($values as $value) {
$return[$delta]['email'] = $value;
$delta++;
}
if (!isset($return)) {
$return = NULL;
}
return $return;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateEmailFieldHandler:: |
public | function | ||
MigrateEmailFieldHandler:: |
public | function |
Overrides MigrateHandler:: |
|
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? | |
MigrateHandler:: |
protected | function | Register a list of types handled by this class |