Class: VFS_file
Source Location: /VFS-0.3.0/lib/VFS/file.php
VFS
|
--VFS_file
VFS implementation for a standard filesystem.
Author(s):
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
VFS_file (Constructor) [line 41]
VFS_file VFS_file(
[array
$params = array()])
|
|
Constructs a new Filesystem based VFS object.
Parameters:
changePermissions [line 456]
mixed changePermissions(
string
$path, string
$name, integer
$permission)
|
|
Changes permissions for an item in the VFS.
Overrides VFS::changePermissions() (Changes permissions for an item on the VFS.)
Parameters:
copy [line 268]
mixed copy(
string
$path, string
$name, string
$dest, [boolean
$autocreate = false])
|
|
Copies a file through the backend.
Overridden in child classes as:
- VFS_sql_file::copy()
- Copies a file through the backend.
Overrides VFS::copy() (Copies a file through the backend.)
Parameters:
createFolder [line 425]
mixed createFolder(
string
$path, string
$name)
|
|
Creates a folder on the VFS.
Overridden in child classes as:
- VFS_sql_file::createFolder()
- Creates a folder on the VFS.
Overrides VFS::createFolder() (Creates a folder in the VFS.)
Parameters:
deleteFile [line 369]
mixed deleteFile(
string
$path, string
$name)
|
|
Delete a file from the VFS.
Overridden in child classes as:
- VFS_sql_file::deleteFile()
- Delete a file from the VFS.
Overrides VFS::deleteFile() (Deletes a file from the VFS.)
Parameters:
deleteFolder [line 392]
mixed deleteFolder(
string
$path, string
$name, [boolean
$recursive = false])
|
|
Delete a folder from the VFS.
Overridden in child classes as:
- VFS_sql_file::deleteFolder()
- Delete a folder from the VFS.
Overrides VFS::deleteFolder() (Deletes a folder from the VFS.)
Parameters:
exists [line 706]
boolean exists(
string
$path, string
$name)
|
|
Returns if a given file or folder exists in a folder.
Overrides VFS::exists() (Returns if a given file or folder exists in a folder.)
Parameters:
isFolder [line 442]
boolean isFolder(
string
$path, string
$name)
|
|
Check if a given pathname is a folder.
Overrides VFS::isFolder() (Checks if a given item is a folder.)
Parameters:
listFolders [line 604]
mixed listFolders(
[string
$path = ''], [mixed
$filter = null], [boolean
$dotfolders = true])
|
|
Returns a sorted list of folders in specified directory.
Overridden in child classes as:
- VFS_sql_file::listFolders()
- Returns a sorted list of folders in specified directory.
Overrides VFS::listFolders() (Returns a sorted list of folders in the specified directory.)
Parameters:
move [line 227]
mixed move(
string
$path, string
$name, string
$dest, [boolean
$autocreate = false])
|
|
Moves a file in the database and the file system.
Overridden in child classes as:
- VFS_sql_file::move()
- Moves a file in the database and the file system.
Overrides VFS::move() (Moves a file through the backend.)
Parameters:
read [line 78]
string read(
string
$path, string
$name)
|
|
Retrieve a file from the VFS.
Overrides VFS::read() (Retrieves a file from the VFS.)
Parameters:
readByteRange [line 145]
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.
Overrides VFS::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:
readFile [line 100]
string readFile(
string
$path, string
$name)
|
|
Retrieves a file from the VFS as an on-disk local file. This function provides a file on local disk with the data of a VFS file in it. This file <em>cannot</em> be modified! The behavior if you do modify it is undefined. It will be removed at the end of the request.
Overrides VFS::readFile() (Retrieves a file from the VFS as an on-disk local file.)
Parameters:
readStream [line 113]
resource readStream(
string
$path, string
$name)
|
|
Open a read-only stream to a file in the VFS.
Parameters:
rename [line 682]
mixed rename(
string
$oldpath, string
$oldname, string
$newpath, string
$newname)
|
|
Rename a file or folder in the VFS.
Overridden in child classes as:
- VFS_sql_file::rename()
- Rename a file or folder in the VFS.
Overrides VFS::rename() (Renames a file in the VFS.)
Parameters:
size [line 61]
integer size(
string
$path, string
$name)
|
|
Retrieves the filesize from the VFS.
Overrides VFS::size() (Retrieves the size of a file from the VFS.)
Parameters:
write [line 188]
mixed write(
string
$path, string
$name, string
$tmpFile, [boolean
$autocreate = true])
|
|
Store a file in the VFS, with the data copied from a temporary file.
Overridden in child classes as:
- VFS_sql_file::write()
- Store a file in the VFS, with the data copied from a temporary file.
Overrides VFS::write() (Stores a file in the VFS.)
Parameters:
writeData [line 314]
mixed writeData(
string
$path, string
$name, string
$data, [boolean
$autocreate = true])
|
|
Store a file in the VFS from raw data.
Overridden in child classes as:
- VFS_sql_file::writeData()
- Store a file in the VFS from raw data.
Overrides VFS::writeData() (Stores a file in the VFS from raw data.)
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:34:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|