コード例 #1
0
ファイル: Filesystem.php プロジェクト: stweil/owncloud-core
 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;
 }
コード例 #2
0
ファイル: filesystem.php プロジェクト: CDN-Sparks/owncloud
 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;
 }