numCreated; } protected $numUpdated = 0; public function getUpdated() { return $this->numUpdated; } /** * Reset numCreated and numUpdated back to 0. */ public function resetStats() { $this->numCreated = 0; $this->numUpdated = 0; } /** * Null constructor */ public function __construct() { } } /** * All destination handlers should be derived from MigrateDestinationHandler */ abstract class MigrateDestinationHandler extends MigrateHandler { // Any one or more of these methods may be implemented /** * Documentation of any fields added to the destination by this handler. * * @param $entity_type * The entity type (node, user, etc.) for which to list fields. * @param $bundle * The bundle (article, blog, etc.), if any, for which to list fields. * @param Migration $migration * Optionally, the migration providing the context. * * @return array * An array keyed by field name, with field descriptions as values. */ //abstract public function fields($entity_type, $bundle, $migration = NULL); //abstract public function prepare($entity, stdClass $row); //abstract public function complete($entity, stdClass $row); }