Ejemplo n.º 1
0
 public static function init($user, $root)
 {
     if (self::$defaultInstance) {
         return false;
     }
     self::getLoader();
     self::$defaultInstance = new View($root);
     if (!self::$mounts) {
         self::$mounts = \OC::$server->getMountManager();
     }
     //load custom mount config
     self::initMountPoints($user);
     self::$loaded = true;
     return true;
 }
Ejemplo n.º 2
0
 public static function init($user, $root)
 {
     if (self::$defaultInstance) {
         return false;
     }
     self::$defaultInstance = new View($root);
     //load custom mount config
     self::initMountPoints($user);
     self::$loaded = true;
     return true;
 }