1: <?php
2: /**
3: * Define an interface for all ODD exportable objects.
4: *
5: * @package Elgg.Core
6: * @subpackage ODD
7: */
8: interface Exportable {
9: /**
10: * This must take the contents of the object and convert it to exportable ODD
11: *
12: * @return object or array of objects.
13: */
14: public function export();
15:
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: }
24: