added setter for filesystem view

this is needed because there is no possibility to set $defaultInstance to false after filesystem::init
This commit is contained in:
Florin Peter 2013-05-15 02:32:27 +02:00
parent 8776000754
commit 791751b529
1 changed files with 9 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class Filesystem {
return true;
}
/**
/**
* Initialize system and personal mount points for a user
*
* @param string $user
@ -306,6 +306,14 @@ class Filesystem {
return self::$defaultInstance;
}
/**
* set the default filesystem view
*
*/
static public function setView($view) {
self::$defaultInstance = $view;
}
/**
* tear down the filesystem, removing all storage providers
*/