Omeka_Filter_Filename

class Omeka_Filter_Filename

Package: Filter

Rename a file to make it suitable for inclusion in the Omeka repository.

filter(string $value)

Grab the original path to the file, rename it according to our convention, and return the new path to the file.

Parameters:
  • $value (string) – Path to the file.
Returns:

string Path to the (renamed) file.

renameFile(string $name)

Creates a new, random filename for storage in Omeka.

Parameters:
  • $name (string) –
Returns:

string