PerfMigrate.performance_update.inc 584 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * MaterioMateriauNodeMigration
  4. *
  5. */
  6. class PerfPerformanceUpdateNodeMigration extends PerfBasicUpdateMigration {
  7. public function __construct() {
  8. $this->item_xpath = '/RACINE/ARBRE/INITIALE/PERFORMANCE'; // relative to document
  9. parent::__construct();
  10. $this->description = t('XML feed of performances');
  11. // $this->dependencies = array('WineRegion', 'WineUser');
  12. $this->addFieldMapping('nid', 'treeline_id')
  13. ->sourceMigration('PerfPerformanceNode');
  14. }
  15. // public function prepareRow($row){
  16. // parent::prepareRow($row);
  17. // }
  18. }