MountPoint
extends Directory
in package
implements
MountPointInterface
Interfaces, Classes and Traits
Table of Contents
- $parent : mixed
- $path : mixed
- $root : string
- The entry point to this drive. This is the root mount of the virtual filesystem and should be able to retrieve the data appropriately. This may contain the login settings for cloud based storage.
- $scheme : string
- The URI scheme used to identify the drive. This works much like URI schemes or the drive letters on windows machines, except that it does not restrict the amount of characters it can use.
- __construct() : mixed
- Create a new virtual drive to bind a physical location to a virtual scheme.
- all() : CollectionInterface
- contains() : int
- delete() : bool
- getPath() : mixed
- isWritable() : bool
- make() : FileInterface
- mkdir() : NodeInterface
- open() : NodeInterface
- scheme() : string
- Retrieve the scheme the virtual drive, when provided the scheme, the drive manager will link all the requests for this scheme to the drive.
- up() : NodeInterface
- uri() : string
Properties
$parent
private
mixed
$parent
$path
private
mixed
$path
$root
The entry point to this drive. This is the root mount of the virtual filesystem and should be able to retrieve the data appropriately. This may contain the login settings for cloud based storage.
private
string
$root
$scheme
The URI scheme used to identify the drive. This works much like URI schemes or the drive letters on windows machines, except that it does not restrict the amount of characters it can use.
private
string
$scheme
Methods
__construct()
Create a new virtual drive to bind a physical location to a virtual scheme.
public
__construct(string $scheme, string $root) : mixed
Your application can therefore create a virtual drive like uploads:// to link to your upload directory.
This makes the task of system administration and, for example, moving a directory to a new location faster, since you just need to update the root of the virtual drive.
Parameters
- $scheme : string
- $root : string
Return values
mixed —all()
public
all() : CollectionInterface
Return values
CollectionInterface —contains()
public
contains(mixed $name) : int
Parameters
- $name : mixed
Return values
int —delete()
public
delete() : bool
Return values
bool —getPath()
public
getPath() : mixed
Return values
mixed —isWritable()
public
isWritable() : bool
Return values
bool —make()
public
make(mixed $name) : FileInterface
Parameters
- $name : mixed
Return values
FileInterface —mkdir()
public
mkdir(mixed $name) : NodeInterface
Parameters
- $name : mixed
Return values
NodeInterface —open()
public
open(mixed $name) : NodeInterface
Parameters
- $name : mixed
Return values
NodeInterface —scheme()
Retrieve the scheme the virtual drive, when provided the scheme, the drive manager will link all the requests for this scheme to the drive.
public
scheme() : string
Return values
string —up()
public
up() : NodeInterface
Return values
NodeInterface —uri()
public
uri() : string