Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created April 17, 2013 12:03
Show Gist options
  • Save phpfiddle/5403716 to your computer and use it in GitHub Desktop.
Save phpfiddle/5403716 to your computer and use it in GitHub Desktop.
Всякое там
<?php
class YourHandler extends MigrateDestinationHandler {
public function __construct() {
$this->registerTypes(array('node')); // тут типа регистрируешься для нодов
}
public function prepare($entity, stdClass $row) {
// это чтобы бить прицельно по типам данных
if (in_array($entity->type, array('eanews', 'eainterview', 'ealinksdossier', 'eaopinion'))) {
// тут хренячишь что надо в $entity
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment