Exportable.php 520 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Define an interface for all ODD exportable objects.
  4. *
  5. * @package Elgg.Core
  6. * @subpackage ODD
  7. * @deprecated 1.9
  8. */
  9. interface Exportable {
  10. /**
  11. * This must take the contents of the object and convert it to exportable ODD
  12. *
  13. * @return object or array of objects.
  14. */
  15. public function export();
  16. /**
  17. * Return a list of all fields that can be exported.
  18. * This should be used as the basis for the values returned by export()
  19. *
  20. * @return array
  21. */
  22. public function getExportableValues();
  23. }