MountProviderCollection¶
-
class
OC\Files\Config\
MountProviderCollection
¶ Source: lib/private/Files/Config/MountProviderCollection.php#40 Implements: OCP\Files\Config\IMountProviderCollection
OC\Hooks\Emitter
Used traits: OC\Hooks\EmitterTrait
Properties¶
Methods¶
-
public
OC\Files\Config\MountProviderCollection::
__construct
($loader, $mountCache)¶ Source: Parameters: - $loader (
OCP\Files\Storage\IStorageFactory
) - $mountCache (
OCP\Files\Config\IUserMountCache
)
- $loader (
-
public
OC\Files\Config\MountProviderCollection::
getMountsForUser
($user)¶ - Get all configured mount points for the user
Source: Parameters: - $user (
OCP\IUser
)
Returns: - $user (
-
public
OC\Files\Config\MountProviderCollection::
addMountForUser
($user, $mountManager)¶ Source: lib/private/Files/Config/MountProviderCollection.php#98
-
public
OC\Files\Config\MountProviderCollection::
getHomeMountForUser
($user)¶ - Get the configured home mount for this user
Source: Parameters: - $user (
OCP\IUser
)
Returns: Since: 9.1.0
- $user (
-
public
OC\Files\Config\MountProviderCollection::
registerProvider
($provider)¶ - Add a provider for mount points
Source: Parameters: - $provider (
OCP\Files\Config\IMountProvider
)
- $provider (
-
public
OC\Files\Config\MountProviderCollection::
registerMountFilter
($filter)¶ Source: lib/private/Files/Config/MountProviderCollection.php#161
-
public
OC\Files\Config\MountProviderCollection::
registerHomeProvider
($provider)¶ - Add a provider for home mount points
Source: Parameters: - $provider (
OCP\Files\Config\IHomeMountProvider
)
Since: 9.1.0
- $provider (
-
public
OC\Files\Config\MountProviderCollection::
registerMounts
($user, $mountPoints)¶ - Cache mounts for user
Source: Parameters: - $user (
OCP\IUser
) - $mountPoints (
OCP\Files\Mount\IMountPoint[]
)
- $user (
-
public
OC\Files\Config\MountProviderCollection::
getMountCache
()¶ - Get the mount cache which can be used to search for mounts without setting up the filesystem
Source: lib/private/Files/Config/MountProviderCollection.php#202 Returns: \OCP\Files\Config\IUserMountCache
-
public
OC\Files\Config\MountProviderCollection::
registerRootProvider
($provider)¶ Source: lib/private/Files/Config/MountProviderCollection.php#206
-
public
OC\Files\Config\MountProviderCollection::
getRootMounts
()¶ - Get all root mountpoints
Source: lib/private/Files/Config/MountProviderCollection.php#216 Returns: \OCP\Files\Mount\IMountPoint[]
Since: 20.0.0