Class: VFS
Source Location: /VFS-0.0.5/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 70]
VFS VFS(
[array
$params = array()])
|
|
Constructor.
Parameters:
autocreatePath [line 336]
void autocreatePath(
string
$path)
|
|
Automatically creates any necessary parent directories in the specified $path.
Parameters:
changePermissions [line 542]
checkCredentials [line 87]
mixed checkCredentials(
)
|
|
Checks the credentials that we have by calling _connect(), to see if there is a valid login.
copy [line 253]
mixed copy(
string
$path, string
$name, string
$dest)
|
|
Copies a file through the backend.
Overridden in child classes as:
- 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.
Parameters:
createFolder [line 323]
deleteFile [line 269]
deleteFolder [line 386]
emptyFolder [line 400]
mixed emptyFolder(
string
$path)
|
|
Removes recursively all files and subfolders from the given folder.
Parameters:
exists [line 302]
boolean exists(
string
$path, string
$name)
|
|
Returns if a given file or folder exists in a folder.
Parameters:
factory [line 648]
VFS &factory(
mixed
$driver, [array
$params = array()])
|
|
Attempts to return a concrete VFS instance based on $driver.
Parameters:
getCurrentDirectory [line 482]
string getCurrentDirectory(
)
|
|
Returns the current working directory of the VFS backend.
Overridden in child classes as:
- VFS_ftp::getCurrentDirectory()
- Returns the current working directory on the FTP server.
getModifiablePermissions [line 585]
array getModifiablePermissions(
)
|
|
Returns an array specifying what permissions are changeable for this VFS implementation.
getParam [line 115]
mixed getParam(
string
$name)
|
|
Returns configuration parameters.
Parameters:
getRequiredCredentials [line 572]
array getRequiredCredentials(
)
|
|
Returns the list of additional credentials required, if any.
isFolder [line 368]
boolean isFolder(
string
$path, string
$name)
|
|
Checks if a given item is a folder.
Overridden in child classes as:
- VFS_ftp::isFolder()
- Checks if a given item is a folder.
- VFS_file::isFolder()
- Check if a given pathname is a folder.
Parameters:
listFolder [line 439]
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.
Parameters:
listFolders [line 560]
mixed listFolders(
[string
$path = ''], [mixed
$filter = null], [boolean
$dotfolders = true])
|
|
Returns a sorted list of folders in the specified directory.
Overridden in child classes as:
- VFS_sql_file::listFolders()
- Returns a sorted list of folders in specified directory.
- VFS_ftp::listFolders()
- Returns a sorted list of folders in the specified directory.
- VFS_file::listFolders()
- Returns a sorted list of folders in specified directory.
- VFS_sql::listFolders()
- Returns a sorted list of folders in specified directory.
Parameters:
log [line 127]
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 236]
mixed move(
string
$path, string
$name, string
$dest)
|
|
Moves a file through the backend.
Overridden in child classes as:
- 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.
Parameters:
read [line 182]
rename [line 287]
setLogger [line 159]
void setLogger(
Log
&$logger, [
$logLevel = null])
|
|
Sets the PEAR Log object used to log informational or error messages.
Parameters:
setParams [line 99]
void setParams(
[array
$params = array()])
|
|
Sets configuration parameters.
Parameters:
singleton [line 679]
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:
strlen [line 620]
string strlen(
string
$string, [string
$charset = null])
|
|
Returns the character (not byte) length of a string.
Parameters:
strtolower [line 600]
string strtolower(
string
$string)
|
|
Converts a string to all lowercase characters ignoring the current locale.
Parameters:
write [line 201]
mixed write(
string
$path, string
$name, string
$tmpFile, [boolean
$autocreate = false])
|
|
Stores a file in the VFS.
Overridden in child classes as:
- VFS_sql_file::write()
- Store a file in the VFS, with the data copied from a temporary file.
- VFS_ftp::write()
- Stores a file in the VFS.
- VFS_file::write()
- Store a file in the VFS, with the data copied from a temporary file.
- VFS_sql::write()
- Stores a file in the VFS.
Parameters:
writeData [line 219]
_listFolder [line 469]
array _listFolder(
string
$path, [mixed
$filter = null], [boolean
$dotfiles = true], [boolean
$dironly = false])
|
|
Returns an an unsorted file list of the specified directory.
Overridden in child classes as:
- VFS_sql_file::_listFolder()
- Return a list of the contents of a folder.
- VFS_ftp::_listFolder()
- Returns an an unsorted file list of the specified directory.
- VFS_file::_listFolder()
- Return a list of the contents of a folder.
- VFS_sql::_listFolder()
- Return a list of the contents of a folder.
Parameters:
Documentation generated on Mon, 11 Mar 2019 14:31:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|