Omeka_Storage_Adapter_TempFilesystem¶
- class Omeka_Storage_Adapter_TempFilesystem¶
Package: Storage\Adapter
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 _localDir¶
Local directory where files are stored.
- property _subDirs¶
- property _webDir¶
Web-accesible path that corresponds to $_localDir.
- canStore()¶
No need to perform this check.
- store(string $source, string $dest)¶
Move a local file to “storage.”
Parameters: - $source (string) – Local filesystem path to file.
- $dest (string) – Destination path.
- move(string $source, string $dest)¶
Move a file between two “storage” locations.
Parameters: - $source (string) – Original stored path.
- $dest (string) – Destination stored path.
- getUri($path)¶
Parameters: - $path (unknown) –
- _mkdir($filepath)¶
Parameters: - $filepath (unknown) –
- __construct(array $options = Array)¶
Set options for the storage adapter.
Parameters: - $options (array) –
- setUp()¶
- delete(string $path)¶
Remove a “stored” file.
Parameters: - $path (string) –
- getOptions()¶
Return the options set by the adapter. Used primarily for testing.
- setLocalDir($dir)¶
Parameters: - $dir (unknown) –
- _getAbsPath(string $path)¶
Convert a “storage” path to an absolute filesystem path.
Parameters: - $path (string) – Storage path.
Returns: string Absolute local filesystem path.
- _rename($source, $dest)¶
Parameters: - $source (unknown) –
- $dest (unknown) –
Returns: boolean