Omeka_Storage_Adapter_TempFilesystem
Package: Storage\Adapter
- class Omeka_Storage_Adapter_TempFilesystem
extends Omeka_Storage_Adapter_Filesystem
implements Omeka_Storage_Adapter_AdapterInterface
Storage adapter that uses the system temp directory for its filesystem.
After the adapter is no longer needed (__destruct()), all the files that were created during its lifetime are removed.
Used primarily by the test framework.
- property Omeka_Storage_Adapter_TempFilesystem::$_localDir
protected string
Local directory where files are stored.
- property Omeka_Storage_Adapter_TempFilesystem::$_subDirs
protected
- property Omeka_Storage_Adapter_TempFilesystem::$_webDir
protected string
Web-accesible path that corresponds to $_localDir.
- Omeka_Storage_Adapter_TempFilesystem::canStore()
No need to perform this check.
- Omeka_Storage_Adapter_TempFilesystem::store($source, $dest)
Move a local file to “storage.”
- Parameters:
$source (
string
) – Local filesystem path to file.$dest (
string
) – Destination path.
- Omeka_Storage_Adapter_TempFilesystem::move($source, $dest)
Move a file between two “storage” locations.
- Parameters:
$source (
string
) – Original stored path.$dest (
string
) – Destination stored path.
- Omeka_Storage_Adapter_TempFilesystem::getUri($path)
- Parameters:
$path –
- Omeka_Storage_Adapter_TempFilesystem::_mkdir($filepath)
- Parameters:
$filepath –
- Omeka_Storage_Adapter_TempFilesystem::__construct($options = array())
Set options for the storage adapter.
- Parameters:
$options (
array
) –
- Omeka_Storage_Adapter_TempFilesystem::setUp()
- Omeka_Storage_Adapter_TempFilesystem::delete($path)
Remove a “stored” file.
- Parameters:
$path (
string
) –
- Omeka_Storage_Adapter_TempFilesystem::getOptions()
Return the options set by the adapter. Used primarily for testing.
- Omeka_Storage_Adapter_TempFilesystem::setLocalDir($dir)
Set the path of the local directory where files are stored.
- Parameters:
$dir –
- Omeka_Storage_Adapter_TempFilesystem::setWebDir($dir)
Set the web URL that corresponds with the local dir.
- Parameters:
$dir –
- Omeka_Storage_Adapter_TempFilesystem::_getAbsPath($path)
Convert a “storage” path to an absolute filesystem path.
- Parameters:
$path (
string
) – Storage path.- Returns:
string Absolute local filesystem path.
- Omeka_Storage_Adapter_TempFilesystem::_rename($source, $dest)
- Parameters:
$source –
$dest –
- Returns:
bool