summaryrefslogtreecommitdiffstats
path: root/lib/migrate/provider.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-09 23:33:11 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-09 23:33:11 +0000
commitc3dfcc5b21620476b6e5bf356b42aee9f0da5874 (patch)
treedfd283814afc627bf450f0480afc5d2e491d8262 /lib/migrate/provider.php
parent691103acd5aad2673b6375726ba24fb56e88451b (diff)
downloadnextcloud-server-c3dfcc5b21620476b6e5bf356b42aee9f0da5874.tar.gz
nextcloud-server-c3dfcc5b21620476b6e5bf356b42aee9f0da5874.zip
First basic implementation of migration.db.
Diffstat (limited to 'lib/migrate/provider.php')
-rw-r--r--lib/migrate/provider.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/migrate/provider.php b/lib/migrate/provider.php
index 63b804b6202..9c03639b7c3 100644
--- a/lib/migrate/provider.php
+++ b/lib/migrate/provider.php
@@ -3,22 +3,23 @@
* provides search functionalty
*/
abstract class OC_Migrate_Provider{
- public $appid;
- public function __construct($appid){
- $this->appid = $appid;
- OC_Migrate::registerProvider($this);
+ public $id;
+
+ public function __construct( $appid ){
+ $this->id = $appid;
+ OC_Migrate::registerProvider( $this );
}
- //public static $appid;
+
/**
- * exports data for apps
+ * @breif exports data for apps
* @param string $uid
* @return array appdata to be exported
*/
abstract function export($uid);
/**
- * imports data for the app
+ * @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