. * */ /** * provides an interface to all search providers */ class OC_Migrate{ static public $providers=array(); /** * register a new migration provider * @param OC_Migrate_Provider $provider */ public static function registerProvider($provider){ self::$providers[]=$provider; } /** * export app data for a user * @param string userid * @return string xml of app data */ public static function export($uid){ $xml = ''; foreach(self::$providers as $provider){ $xml .= ''; $xml .= self::appInfoXML($provider->$appid); $xml .= $provider->export($uid)); $xml .= ''; } return $xml; } /** * generates the app info xml * @param string appid * @return string xml app info */ public static function appInfoXML($appid){ $info = OC_App::getAppInfo($appid); $xml = ''; $zml .= 'INFO HERE'; $xml .= ''; return $xml; } }