summaryrefslogtreecommitdiffstats
path: root/lib/migrate.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/migrate.php b/lib/migrate.php
index a6a6432d0de..863cf261f4e 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -122,6 +122,21 @@ class OC_Migrate{
}
/**
+ * @breif returns an array of apps that support migration
+ * @return array
+ */
+ static public function getApps(){
+ $allapps = OC_App::getAllApps();
+ foreach($allapps as $app){
+ $path = OC::$SERVERROOT . '/apps/' . $app . '/lib/migrate.php';
+ if( file_exists( $path ) ){
+ $supportsmigration[] = $app;
+ }
+ }
+ reutrn $supportsmigration;
+ }
+
+ /**
* @breif imports a new user
* @param $db string path to migration.db
* @param $migrateinfo array of migration ino