[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/files/engine/ -> PhabricatorLocalDiskFileStorageEngine.php (summary)

Local disk storage engine. Keeps files on local disk. This engine is easy to set up, but it doesn't work if you have multiple web frontends!

File Size: 122 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  getEngineIdentifier()
  writeFile()
  readFile()
  deleteFile()
  getLocalDiskFileStorageRoot()
  getLocalDiskFileStorageFullPath()

Functions
Functions that are not part of a class:

getEngineIdentifier()   X-Ref
This engine identifies as "local-disk".


writeFile($data, array $params)   X-Ref
Write the file data to local disk. Returns the relative path as the
file data handle.


readFile($handle)   X-Ref
Read the file data off local disk.


deleteFile($handle)   X-Ref
Deletes the file from local disk, if it exists.


getLocalDiskFileStorageRoot()   X-Ref
Get the configured local disk path for file storage.

return: string Absolute path to somewhere that files can be stored.

getLocalDiskFileStorageFullPath($handle)   X-Ref
Convert a handle into an absolute local disk path.

param: string File data handle.
return: string Absolute path to the corresponding file.



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1