Nextcloud PHP API (master)

IMountProviderCollection

Manages the different mount providers

Tags
since
8.0.0

Table of Contents

Methods

getHomeMountForUser()  : IMountPoint
Get the configured home mount for this user
getMountCache()  : IUserMountCache
Get the mount cache which can be used to search for mounts without setting up the filesystem
getMountsForUser()  : array<string|int, IMountPoint>
Get all configured mount points for the user
getRootMounts()  : array<string|int, IMountPoint>
Get all root mountpoints
getUserMountsForProviderClasses()  : array<string|int, IMountPoint>
Get the configured mount points for the user from a specific mount provider
registerHomeProvider()  : mixed
Add a provider for home mount points
registerMountFilter()  : mixed
Add a filter for mounts
registerProvider()  : mixed
Add a provider for mount points

Methods

getUserMountsForProviderClasses()

Get the configured mount points for the user from a specific mount provider

public getUserMountsForProviderClasses(IUser $user, array<string|int, IMountProvider>$mountProviderClasses) : array<string|int, IMountPoint>
Parameters
$user : IUser
$mountProviderClasses : array<string|int, IMountProvider>>
Tags
since
24.0.0
Return values
array<string|int, IMountPoint>

registerMountFilter()

Add a filter for mounts

public registerMountFilter(callable $filter) : mixed
Parameters
$filter : callable

(IMountPoint $mountPoint, IUser $user) => boolean

Tags
since
14.0.0

        
On this page

Search results