Importable.php 524 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Define an interface for all ODD importable objects.
  4. *
  5. * @package Elgg.Core
  6. * @subpackage DataModel.Importable
  7. * @deprecated 1.9
  8. */
  9. interface Importable {
  10. /**
  11. * Accepts an array of data to import, this data is parsed from the XML produced by export.
  12. * The function should return the constructed object data, or null.
  13. *
  14. * @param ODD $data Data in ODD format
  15. *
  16. * @return bool
  17. * @throws ImportException if there was a critical error importing data.
  18. */
  19. public function import(ODD $data);
  20. }