UserMountCache¶
- 
class OC\Files\Config\UserMountCache¶
- Cache mounts points per user in the cache so we can easilly look them upSource: lib/private/Files/Config/UserMountCache.php#49 Implements: OCP\Files\Config\IUserMountCache
Properties¶
Methods¶
- 
public OC\Files\Config\UserMountCache::__construct($connection, $userManager, $logger)¶
- UserMountCache constructor.Source: Parameters: - $connection (OCP\IDBConnection)
- $userManager (OCP\IUserManager)
- $logger (OCP\ILogger)
 
- $connection (
- 
public OC\Files\Config\UserMountCache::registerMounts($user, $mounts)¶
- Source: - lib/private/Files/Config/UserMountCache.php#93 
- 
public OC\Files\Config\UserMountCache::getMountsForUser($user)¶
- Source: - Parameters: - $user (OCP\IUser)
 - Returns: 
- $user (
- 
public OC\Files\Config\UserMountCache::getMountsForStorageId($numericStorageId, $user=null)¶
- Source: - Parameters: - $numericStorageId (int)
- $user (string | null) limit the results to a single user
 - Returns: 
- 
public OC\Files\Config\UserMountCache::getMountsForRootId($rootFileId)¶
- Source: - Parameters: - $rootFileId (int)
 - Returns: 
- 
public OC\Files\Config\UserMountCache::getMountsForFileId($fileId, $user=null)¶
- Source: - Parameters: - $fileId (int)
- $user (string | null) optionally restrict the results to a single user
 - Returns: - Since: - 9.0.0 
- 
public OC\Files\Config\UserMountCache::removeUserMounts($user)¶
- Remove all cached mounts for a userSource: Parameters: - $user (OCP\IUser)
 
- $user (
- 
public OC\Files\Config\UserMountCache::removeUserStorageMount($storageId, $userId)¶
- Source: - lib/private/Files/Config/UserMountCache.php#379 
- 
public OC\Files\Config\UserMountCache::remoteStorageMounts($storageId)¶
- Source: - lib/private/Files/Config/UserMountCache.php#388 
- 
public OC\Files\Config\UserMountCache::getUsedSpaceForUsers($users)¶
- Source: - Parameters: - $users (array)
 - Returns: - array 
- 
public OC\Files\Config\UserMountCache::clear()¶
- Source: - lib/private/Files/Config/UserMountCache.php#434