summaryrefslogtreecommitdiffstats
path: root/lib/migrate/provider.php
blob: 9c03639b7c3b976a3c20c0e818f8f04568d820a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * provides search functionalty
 */
abstract class OC_Migrate_Provider{
	
	public $id;
	
	public function __construct( $appid ){
		$this->id = $appid;
		OC_Migrate::registerProvider( $this );
	}
	
	/**
	 * @breif exports data for apps
	 * @param string $uid
	 * @return array appdata to be exported
	 */
	abstract function export($uid);
	
	/**
	 * @breif imports data for the app
	 * @param $data array of data. eg: array('info'=> APPINFO, 'data'=>APPDATA ARRAY)
	 * @param $info array of info of the source install
	 * @return void
	 */
	abstract function import($data,$uid);
}