Nextcloud PHP API (stable19)

IMountProviderCollection

Manages the different mount providers

Tags
since
8.0.0

Table of Contents

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()  : \OCP\Files\Mount\IMountPoint[]
Get all configured mount points for the user
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

getMountsForUser()

Get all configured mount points for the user

public getMountsForUser(IUser $user) : \OCP\Files\Mount\IMountPoint[]
Parameters
$user : IUser
Tags
since
8.0.0
Return values
\OCP\Files\Mount\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
Return values
mixed

Search results