Omeka_Storage_Adapter_Filesystem¶
- class Omeka_Storage_Adapter_Filesystem¶
Package: Storage\Adapter
Standard local filesystem storage adapter.
The default adapter; this stores files in the Omeka files directory bydefault, but can be set to point to a different path.
- property _localDir¶
Local directory where files are stored.
- property _subDirs¶
- property _webDir¶
Web-accesible path that corresponds to $_localDir.
- __construct(array $options = Array)¶
Set options for the storage adapter.
Parameters: - $options (array) –
- setUp()¶
- canStore()¶
Check whether the adapter is set up correctly to be able to store files.
Specifically, this checks to see if the local storage directoryis writable.
Returns: boolean
- 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.
- delete(string $path)¶
Remove a “stored” file.
Parameters: - $path (string) –
- getUri(string $path)¶
Get a URI for a “stored” file.
Parameters: - $path (string) –
Returns: string URI
- 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