Class Zend_Search_Lucene_Storage_Directory_Filesystem

Description

FileSystem implementation of Directory abstraction.

Located in /Zend/Search/Lucene/Storage/Directory/Filesystem.php (line 37)

Zend_Search_Lucene_Storage_Directory
   |
   --Zend_Search_Lucene_Storage_Directory_Filesystem
Variable Summary
 string $_dirPath
Method Summary
 Zend_Search_Lucene_Storage_Directory_Filesystem __construct (string $path)
 void close ()
 void deleteFile (string $filename)
 boolean fileExists (string $filename)
 integer fileLength (string $filename)
 array fileList ()
 integer fileModified (string $filename)
 boolean mkdirs (string $dir, [integer $mode = 0777], [boolean $recursive = true])
 void renameFile (string $from, string $to)
 void touchFile (string $filename)
Variables
string $_dirPath = null (line 44)

Filesystem path to the directory

  • access: private
array $_fileHandlers (line 53)

Cache for Zend_Search_Lucene_Storage_File_Filesystem objects Array: filename => Zend_Search_Lucene_Storage_File object

  • access: private
  • throws: Zend_Search_Lucene_Exception
Methods
Constructor __construct (line 87)

Object constructor Checks if $path is a directory or tries to create it.

  • access: public
  • throws: Zend_Search_Lucene_Exception
Zend_Search_Lucene_Storage_Directory_Filesystem __construct (string $path)
  • string $path
close (line 108)

Closes the store.

  • access: public
void close ()

Redefinition of:
Zend_Search_Lucene_Storage_Directory::close()
Closes the store.
createFile (line 147)

Creates a new, empty file in the directory with the given $filename.

  • access: public
Zend_Search_Lucene_Storage_File createFile (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::createFile()
Creates a new, empty file in the directory with the given $filename.
deleteFile (line 164)

Removes an existing $filename in the directory.

  • access: public
void deleteFile (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::deleteFile()
Removes an existing $filename in the directory.
fileExists (line 180)

Returns true if a file with the given $filename exists.

  • access: public
boolean fileExists (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::fileExists()
Returns true if a file with the given $filename exists.
fileLength (line 192)

Returns the length of a $filename in the directory.

  • access: public
integer fileLength (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::fileLength()
Returns the length of a $filename in the directory.
fileList (line 123)

Returns an array of strings, one for each file in the directory.

  • access: public
array fileList ()

Redefinition of:
Zend_Search_Lucene_Storage_Directory::fileList()
Returns an array of strings, one for each file in the directory.
fileModified (line 207)

Returns the UNIX timestamp $filename was last modified.

  • access: public
integer fileModified (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::fileModified()
Returns the UNIX timestamp $filename was last modified.
getFileObject (line 258)

Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory.

  • access: public
Zend_Search_Lucene_Storage_File getFileObject (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::getFileObject()
Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory.
mkdirs (line 65)

Utility function to recursive directory creation

  • access: public
  • static:
boolean mkdirs (string $dir, [integer $mode = 0777], [boolean $recursive = true])
  • string $dir
  • integer $mode
  • boolean $recursive
renameFile (line 220)

Renames an existing file in the directory.

  • access: public
void renameFile (string $from, string $to)
  • string $from
  • string $to

Redefinition of:
Zend_Search_Lucene_Storage_Directory::renameFile()
Renames an existing file in the directory.
touchFile (line 246)

Sets the modified time of $filename to now.

  • access: public
void touchFile (string $filename)
  • string $filename

Redefinition of:
Zend_Search_Lucene_Storage_Directory::touchFile()
Sets the modified time of $filename to now.

Inherited Methods

Inherited From Zend_Search_Lucene_Storage_Directory

 Zend_Search_Lucene_Storage_Directory::close()
 Zend_Search_Lucene_Storage_Directory::createFile()
 Zend_Search_Lucene_Storage_Directory::deleteFile()
 Zend_Search_Lucene_Storage_Directory::fileExists()
 Zend_Search_Lucene_Storage_Directory::fileLength()
 Zend_Search_Lucene_Storage_Directory::fileList()
 Zend_Search_Lucene_Storage_Directory::fileModified()
 Zend_Search_Lucene_Storage_Directory::getFileObject()
 Zend_Search_Lucene_Storage_Directory::renameFile()
 Zend_Search_Lucene_Storage_Directory::touchFile()

Documentation generated on Tue, 18 Apr 2006 11:55:01 -0700 by phpDocumentor 1.3.0RC3