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