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