Class: VFS
Source Location: /VFS-0.1.0/VFS.php
VFS API for abstracted file storage and access.
Author(s):
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
VFS (Constructor) [line 80]
VFS VFS(
[array
$params = array()])
|
|
Constructor.
Parameters:
autocreatePath [line 427]
void autocreatePath(
string
$path)
|
|
Automatically creates any necessary parent directories in the specified $path.
Parameters:
changePermissions [line 624]
checkCredentials [line 101]
mixed checkCredentials(
)
|
|
Checks the credentials that we have by calling _connect(), to see if there is a valid login.
copy [line 300]
mixed copy(
string
$path, string
$name, string
$dest, [boolean
$autocreate = false])
|
|
Copies a file through the backend.
Overridden in child classes as:
- VFS_smb::copy()
- Copies a file through the backend.
- VFS_sql_file::copy()
- Copies a file through the backend.
- VFS_ftp::copy()
- Copies a file through the backend.
- VFS_file::copy()
- Copies a file through the backend.
- VFS_ssh2::copy()
- Copies a file through the backend.
Parameters:
createFolder [line 416]
deleteFile [line 366]
deleteFolder [line 476]
emptyFolder [line 488]
mixed emptyFolder(
string
$path)
|
|
Removes recursively all files and subfolders from the given folder.
Parameters:
exists [line 396]
boolean exists(
string
$path, string
$name)
|
|
Returns if a given file or folder exists in a folder.
Parameters:
factory [line 977]
VFS &factory(
mixed
$driver, [array
$params = array()])
|
|
Attempts to return a concrete VFS instance based on $driver.
Parameters:
getCurrentDirectory [line 565]
getFileSize [line 719]
getFolderSize [line 735]
integer getFolderSize(
[string
$path = null], [string
$name = null])
|
|
Returns the size of a folder
Overridden in child classes as:
- VFS_sql::getFolderSize()
- Returns the size of a file.
Parameters:
getModifiablePermissions [line 662]
array getModifiablePermissions(
)
|
|
Returns an array specifying what permissions are changeable for this VFS implementation.
getParam [line 125]
mixed getParam(
string
$name)
|
|
Returns configuration parameters.
Parameters:
getQuota [line 815]
Get quota information (used/allocated), in bytes.
getRequiredCredentials [line 651]
array getRequiredCredentials(
)
|
|
Returns the list of additional credentials required, if any.
getVFSSize [line 758]
Returns the size of the VFS item.
isFolder [line 459]
listFolder [line 525]
array listFolder(
string
$path, [mixed
$filter = null], [boolean
$dotfiles = true], [boolean
$dironly = false], [boolean
$recursive = false])
|
|
Returns a file list of the directory passed in.
Overridden in child classes as:
- VFS_smb::listFolder()
- Returns an unsorted file list.
Parameters:
listFolders [line 641]
log [line 137]
void log(
mixed
$message, [integer
$priority = PEAR_LOG_ERR])
|
|
Logs a message if a PEAR Log object is available, and the message's priority is lower than or equal to the configured log level.
Parameters:
move [line 282]
mixed move(
string
$path, string
$name, string
$dest, [boolean
$autocreate = false])
|
|
Moves a file through the backend.
Overridden in child classes as:
- VFS_smb::move()
- Moves a file through the backend.
- VFS_sql_file::move()
- Moves a file in the database and the file system.
- VFS_ftp::move()
- Moves a file through the backend.
- VFS_file::move()
- Moves a file in the database and the file system.
- VFS_ssh2::move()
- Moves a file through the backend.
Parameters:
read [line 206]
readByteRange [line 232]
string readByteRange(
string
$path, string
$name,
&$offset, [integer
$length = -1],
&$remaining, integer
$offset, integer
$remaining)
|
|
Retrieves a part of a file from the VFS. Particularly useful when reading large files which would exceed the PHP memory limits if they were stored in a string.
Overridden in child classes as:
- VFS_file::readByteRange()
- Retrieves a part of a file from the VFS. Particularly useful when reading large files which would exceed the PHP memory limits if they were stored in a string.
Parameters:
rename [line 383]
setLogger [line 169]
void setLogger(
Log
&$logger, [
$logLevel = null])
|
|
Sets the PEAR Log object used to log informational or error messages.
Parameters:
setParams [line 111]
void setParams(
[array
$params = array()])
|
|
Sets configuration parameters.
Parameters:
setQuota [line 774]
void setQuota(
integer
$quota, [integer
$metric = VFS_QUOTA_METRIC_BYTE])
|
|
Sets the VFS quota limit.
Parameters:
setQuotaRoot [line 800]
void setQuotaRoot(
string
$dir)
|
|
Sets the VFS quota root.
Parameters:
singleton [line 1008]
VFS &singleton(
mixed
$driver, [array
$params = array()])
|
|
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()
Parameters:
size [line 191]
integer size(
string
$path, string
$name)
|
|
Retrieves the size of a file from the VFS.
Overridden in child classes as:
- VFS_file::size()
- Retrieves the filesize from the VFS.
- VFS_sql::size()
- Retrieves the filesize from the VFS.
Parameters:
strlen [line 693]
string strlen(
string
$string, [string
$charset = null])
|
|
Returns the character (not byte) length of a string.
Parameters:
strtolower [line 675]
string strtolower(
string
$string)
|
|
Converts a string to all lowercase characters ignoring the current locale.
Parameters:
write [line 250]
writeData [line 267]
_copyRecursive [line 336]
void _copyRecursive(
string
$path, string
$name, string
$dest)
|
|
Recursively copies a directory through the backend.
Parameters:
_getPath [line 957]
mixed _getPath(
string
$path, string
$name)
|
|
Returns the full path of an item.
Parameters:
_getTempDir [line 837]
Determines the location of the system temporary directory.
_getTempFile [line 872]
Creates a temporary file.
Documentation generated on Mon, 11 Mar 2019 14:39:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|