mirror of
https://github.com/nextcloud/server.git
synced 2026-02-12 07:14:44 -05:00
28 lines
589 B
PHP
28 lines
589 B
PHP
<?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);
|
|
}
|