[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

MySQL blob storage engine. This engine is the easiest to set up but doesn't scale very well. It uses the @{class:PhabricatorFileStorageBlob} to actually access the underlying database table.

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

Defines 5 functions

  getEngineIdentifier()
  writeFile()
  readFile()
  deleteFile()
  loadFromMySQLFileStorage()

Functions
Functions that are not part of a class:

getEngineIdentifier()   X-Ref
For historical reasons, this engine identifies as "blob".


writeFile($data, array $params)   X-Ref
Write file data into the big blob store table in MySQL. Returns the row
ID as the file data handle.


readFile($handle)   X-Ref
Load a stored blob from MySQL.


deleteFile($handle)   X-Ref
Delete a blob from MySQL.


loadFromMySQLFileStorage($handle)   X-Ref
Load the Lisk object that stores the file data for a handle.

param: string  File data handle.
return: PhabricatorFileStorageBlob Data DAO.



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