nextcloud/lib/migrate/provider.php

28 lines
507 B
PHP
Raw Normal View History

<?php
/**
* provides search functionalty
*/
abstract class OC_Migrate_Provider{
2012-02-04 01:28:58 +04:00
public $id;
public function __construct( $appid ){
$this->id = $appid;
OC_Migrate::registerProvider( $this );
}
/**
* @breif exports data for apps
* @param string $uid
2012-03-03 21:30:21 +04:00
* @return array appdata to be exported
*/
abstract function export($uid);
/**
* @breif imports data for the app
2012-03-14 03:09:43 +04:00
* @param $info array of info including exportinfo.json
2012-03-03 21:30:21 +04:00
* @return void
*/
2012-03-14 03:09:43 +04:00
abstract function import( $info );
}