IMountManager
in
Interface IMountManager
Manages all mounted storages in the system
Tags
Table of Contents
Methods
- addMount() : mixed
- Add a new mount
- clear() : mixed
- Remove all registered mounts
- find() : IMountPoint
- Find the mount for $path
- findByNumericId() : array<string|int, IMountPoint>
- Find mounts by numeric storage id
- findByStorageId() : array<string|int, IMountPoint>
- Find mounts by storage id
- findIn() : array<string|int, IMountPoint>
- Find all mounts in $path
- getAll() : array<string|int, IMountPoint>
- getMountFromMountInfo() : IMountPoint|null
- Return the mount matching a cached mount info (or mount file info)
- moveMount() : mixed
- Change the location of a mount
- removeMount() : mixed
- Remove a mount
Methods
addMount()
Add a new mount
public
addMount(IMountPoint $mount) : mixed
Parameters
- $mount : IMountPoint
Tags
clear()
Remove all registered mounts
public
clear() : mixed
Tags
find()
Find the mount for $path
public
find(string $path) : IMountPoint
Parameters
- $path : string
Tags
Return values
IMountPointfindByNumericId()
Find mounts by numeric storage id
public
findByNumericId(int $id) : array<string|int, IMountPoint>
Parameters
- $id : int
Tags
Return values
array<string|int, IMountPoint>findByStorageId()
Find mounts by storage id
public
findByStorageId(string $id) : array<string|int, IMountPoint>
Parameters
- $id : string
Tags
Return values
array<string|int, IMountPoint>findIn()
Find all mounts in $path
public
findIn(string $path) : array<string|int, IMountPoint>
Parameters
- $path : string
Tags
Return values
array<string|int, IMountPoint>getAll()
public
getAll() : array<string|int, IMountPoint>
Tags
Return values
array<string|int, IMountPoint>getMountFromMountInfo()
Return the mount matching a cached mount info (or mount file info)
public
getMountFromMountInfo(ICachedMountInfo $info) : IMountPoint|null
Parameters
- $info : ICachedMountInfo
Tags
Return values
IMountPoint|nullmoveMount()
Change the location of a mount
public
moveMount(string $mountPoint, string $target) : mixed
Parameters
- $mountPoint : string
- $target : string
Tags
removeMount()
Remove a mount
public
removeMount(string $mountPoint) : mixed
Parameters
- $mountPoint : string