\Zend_Search_Lucene_Storage_Directory_Filesystem
FileSystem implementation of Directory abstraction.
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Storage_Directory_Filesystem
extends Zend_Search_Lucene_Storage_Directory
{
- // members
- protected $_dirPath = NULL;
- protected $_fileHandlers;
- protected static integer $_defaultFilePermissions = 0666;
- // methods
- public static integer getDefaultFilePermissions()
- public static void setDefaultFilePermissions()
- public static boolean mkdirs()
- public void __construct()
- public void close()
- public array fileList()
- public Zend_Search_Lucene_Storage_File createFile()
- public void deleteFile()
- public void purgeFile()
- public boolean fileExists()
- public integer fileLength()
- public integer fileModified()
- public void renameFile()
- public void touchFile()
- public Zend_Search_Lucene_Storage_File getFileObject()
- // Inherited methods from Zend_Search_Lucene_Storage_Directory
- public abstract void close()
- public abstract array fileList()
- public abstract Zend_Search_Lucene_Storage_File createFile()
- public abstract void deleteFile()
- public abstract void purgeFile()
- public abstract boolean fileExists()
- public abstract integer fileLength()
- public abstract integer fileModified()
- public abstract void renameFile()
- public abstract void touchFile()
- public abstract Zend_Search_Lucene_Storage_File getFileObject()
Hierarchy
Members
protected
- $_defaultFilePermissions
—
integer
Default file permissions - $_dirPath
—
string
Filesystem path to the directory - $_fileHandlers
—
array
Cache for Zend_Search_Lucene_Storage_File_Filesystem objects Array: filename => Zend_Search_Lucene_Storage_File object
Methods
public
- __construct() — Object constructor Checks if $path is a directory or tries to create it.
- close() — Closes the store.
- createFile() — Creates a new, empty file in the directory with the given $filename.
- deleteFile() — Removes an existing $filename in the directory.
- fileExists() — Returns true if a file with the given $filename exists.
- fileLength() — Returns the length of a $filename in the directory.
- fileList() — Returns an array of strings, one for each file in the directory.
- fileModified() — Returns the UNIX timestamp $filename was last modified.
- getDefaultFilePermissions() — Get default file permissions
- getFileObject() — Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory.
- mkdirs() — Utility function to recursive directory creation
- purgeFile() — Purge file if it's cached by directory object
- renameFile() — Renames an existing file in the directory.
- setDefaultFilePermissions() — Set default file permissions
- touchFile() — Sets the modified time of $filename to now.
Inherited from Zend_Search_Lucene_Storage_Directory
public
- close() — Closes the store.
- createFile() — Creates a new, empty file in the directory with the given $filename.
- deleteFile() — Removes an existing $filename in the directory.
- fileExists() — Returns true if a file with the given $filename exists.
- fileLength() — Returns the length of a $filename in the directory.
- fileList() — Returns an array of strings, one for each file in the directory.
- fileModified() — Returns the UNIX timestamp $filename was last modified.
- getFileObject() — Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory.
- purgeFile() — Purge file if it's cached by directory object
- renameFile() — Renames an existing file in the directory.
- touchFile() — Sets the modified time of $filename to now.