Attempts to return a concrete VFS_Object instance based on $driver.
Return: The newly created concrete VFS_Object instance, or false on an error.
Access: public
Parameters:
mixed
$driver
—
The type of concrete VFS subclass to return. This is based on the storage driver ($driver). The code is dynamically included. If $driver is an array then we will look in $driver[0]/lib/VFS/ for the subclass implementation named $driver[1].php.
optional
$params
—
array $params A hash containing any additional configuration or connection parameters a subclass might need.
Attempts to return a reference to a concrete VFS instance based on $driver. It will only create a new instance if no VFS instance with the same parameters currently exists.
This should be used if multiple types of file backends (and, thus, multiple VFS instances) are required.
This method must be invoked as: $var = &VFS::singleton()
Return: The concrete VFS_Object reference, or false on error.
Access: public
Parameters:
mixed
$driver
—
The type of concrete VFS subclass to return. This is based on the storage driver ($driver). The code is dynamically included. If $driver is an array then we will look in $driver[0]/lib/VFS/ for the subclass implementation named $driver[1].php.
optional
$params
—
array $params A hash containing any additional configuration or connection parameters a subclass might need.