\OCP\Files\ConfigIMountProviderCollection

Manages the different mount providers

Summary

Methods
Constants
getMountsForUser()
getHomeMountForUser()
registerProvider()
registerHomeProvider()
getMountCache()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getMountsForUser()

getMountsForUser(\OCP\IUser  $user) : array<mixed,\OCP\Files\Mount\IMountPoint>

Get all configured mount points for the user

Parameters

\OCP\IUser $user

Returns

array<mixed,\OCP\Files\Mount\IMountPoint>

getHomeMountForUser()

getHomeMountForUser(\OCP\IUser  $user) : \OCP\Files\Mount\IMountPoint

Get the configured home mount for this user

Parameters

\OCP\IUser $user

Returns

\OCP\Files\Mount\IMountPoint

registerProvider()

registerProvider(\OCP\Files\Config\IMountProvider  $provider) 

Add a provider for mount points

Parameters

\OCP\Files\Config\IMountProvider $provider

registerHomeProvider()

registerHomeProvider(\OCP\Files\Config\IHomeMountProvider  $provider) 

Add a provider for home mount points

Parameters

\OCP\Files\Config\IHomeMountProvider $provider

getMountCache()

getMountCache() : \OCP\Files\Config\IUserMountCache

Get the mount cache which can be used to search for mounts without setting up the filesystem

Returns

\OCP\Files\Config\IUserMountCache