aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/Importable.php
blob: 7eb984815e5df693cfcc66e19592e0e8ac9c9ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * Define an interface for all ODD importable objects.
 */
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
	 * @return bool
	 * @throws ImportException if there was a critical error importing data.
	 */
	public function import(ODD $data);
}