Zend Framework
1.12
|
Public Member Functions | |
__construct ($path) | |
Object constructor Checks if $path is a directory or tries to create it. | |
close () | |
Closes the store. | |
fileList () | |
Returns an array of strings, one for each file in the directory. | |
createFile ($filename) | |
Creates a new, empty file in the directory with the given $filename. | |
deleteFile ($filename) | |
Removes an existing $filename in the directory. | |
purgeFile ($filename) | |
Purge file if it's cached by directory object. | |
fileExists ($filename) | |
Returns true if a file with the given $filename exists. | |
fileLength ($filename) | |
Returns the length of a $filename in the directory. | |
fileModified ($filename) | |
Returns the UNIX timestamp $filename was last modified. | |
renameFile ($from, $to) | |
Renames an existing file in the directory. | |
touchFile ($filename) | |
Sets the modified time of $filename to now. | |
getFileObject ($filename, $shareHandler=true) | |
Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory. | |
![]() | |
close () | |
Closes the store. | |
fileList () | |
Returns an array of strings, one for each file in the directory. | |
createFile ($filename) | |
Creates a new, empty file in the directory with the given $filename. | |
deleteFile ($filename) | |
Removes an existing $filename in the directory. | |
purgeFile ($filename) | |
Purge file if it's cached by directory object. | |
fileExists ($filename) | |
Returns true if a file with the given $filename exists. | |
fileLength ($filename) | |
Returns the length of a $filename in the directory. | |
fileModified ($filename) | |
Returns the UNIX timestamp $filename was last modified. | |
renameFile ($from, $to) | |
Renames an existing file in the directory. | |
touchFile ($filename) | |
Sets the modified time of $filename to now. | |
getFileObject ($filename, $shareHandler=true) | |
Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory. | |
Static Public Member Functions | |
static | getDefaultFilePermissions () |
Get default file permissions. | |
static | setDefaultFilePermissions ($mode) |
Set default file permissions. | |
static | mkdirs ($dir, $mode=0777, $recursive=true) |
Utility function to recursive directory creation. | |
Protected Attributes | |
$_dirPath = null | |
$_fileHandlers | |
Static Protected Attributes | |
static | $_defaultFilePermissions = 0666 |
__construct | ( | $path | ) |
Object constructor Checks if $path is a directory or tries to create it.
string | $path |
Zend_Search_Lucene_Exception |
close | ( | ) |
Closes the store.
createFile | ( | $filename | ) |
Creates a new, empty file in the directory with the given $filename.
string | $filename |
Zend_Search_Lucene_Exception |
deleteFile | ( | $filename | ) |
Removes an existing $filename in the directory.
string | $filename |
Zend_Search_Lucene_Exception |
fileExists | ( | $filename | ) |
Returns true if a file with the given $filename exists.
string | $filename |
fileLength | ( | $filename | ) |
Returns the length of a $filename in the directory.
string | $filename |
fileList | ( | ) |
Returns an array of strings, one for each file in the directory.
fileModified | ( | $filename | ) |
Returns the UNIX timestamp $filename was last modified.
string | $filename |
|
static |
Get default file permissions.
getFileObject | ( | $filename, | |
$shareHandler = true |
|||
) |
Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory.
If $shareHandler option is true, then file handler can be shared between File Object requests. It speed-ups performance, but makes problems with file position. Shared handler are good for short atomic requests. Non-shared handlers are useful for stream file reading (especial for compound files).
string | $filename | |
boolean | $shareHandler |
|
static |
Utility function to recursive directory creation.
string | $dir | |
integer | $mode | |
boolean | $recursive |
purgeFile | ( | $filename | ) |
Purge file if it's cached by directory object.
Method is used to prevent 'too many open files' error
string | $filename |
renameFile | ( | $from, | |
$to | |||
) |
Renames an existing file in the directory.
string | $from | |
string | $to |
Zend_Search_Lucene_Exception |
|
static |
Set default file permissions.
integer | $mode |
touchFile | ( | $filename | ) |
Sets the modified time of $filename to now.
string | $filename |
|
staticprotected |
|
protected |
|
protected |