diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-20 20:19:21 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-20 20:19:21 +0000 |
commit | 514c9ad8e7df1d7882adc33c42eb32a209537273 (patch) | |
tree | f39dae7822c3b7ddf678861a41a0ceea93e267f2 /lib/migration/provider.php | |
parent | 145d6f35660669397eaee08988ffbad1b65daff0 (diff) | |
download | nextcloud-server-514c9ad8e7df1d7882adc33c42eb32a209537273.tar.gz nextcloud-server-514c9ad8e7df1d7882adc33c42eb32a209537273.zip |
Added unified import method.
Diffstat (limited to 'lib/migration/provider.php')
-rw-r--r-- | lib/migration/provider.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/migration/provider.php b/lib/migration/provider.php index b9e2c476203..d592ed67264 100644 --- a/lib/migration/provider.php +++ b/lib/migration/provider.php @@ -7,7 +7,7 @@ abstract class OC_Migration_Provider{ protected $id=false; protected $content=false; protected $uid=false; - protected $info=false; + protected $olduid=false; protected $appinfo=false; public function __construct( $appid ){ @@ -32,11 +32,13 @@ abstract class OC_Migration_Provider{ * @breif sets the OC_Migration_Content object to $this->content * @param $content a OC_Migration_Content object */ - public function setData( $uid, $content, $info=false, $appinfo=false ){ + public function setData( $uid, $content, $info=false ){ $this->content = $content; $this->uid = $uid; - $this->info = $info; - $this->appinfo = $appinfo; + $this->olduid = $info->exporteduser; + $id = $this->id; + $this->appinfo = $info->apps->$id; + } /** |