PerfMigrate.dimp.inc 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * PerfGroupeNodeMigration
  4. *
  5. */
  6. class PerfDimpNodeMigration extends PerfDocsNodeMigration {
  7. public function __construct() {
  8. $this->description = t('Migrate Document Imprimé Class');
  9. $this->fields = array(
  10. 'fichier_pdf' => t('fichier_pdf'),
  11. );
  12. $this->itemsfile = 'baseperf-dimps.xml';
  13. $this->item_xpath = '/ROOT/ITEMS/DOC_IMPRIME'; // relative to document
  14. parent::__construct();
  15. $this->addFieldMapping('field_type')->defaultValue('imprime');
  16. $this->addFieldMapping('field_fichier_pdf', 'fichier_pdf')
  17. ->xpath('@FICHIER_PDF');
  18. $this->addUnmigratedDestinations(array(
  19. 'field_fichier_pdf:language', 'field_fichier_pdf:format',
  20. // 'field_resume_retranscription', 'field_resume_retranscription:format', 'field_resume_retranscription:language',
  21. ));
  22. }
  23. // public function prepareRow($row){
  24. // // $xml = $row->xml;
  25. // parent::prepareRow($row);
  26. //
  27. //
  28. // }
  29. }