Omeka_Filter_Filename

Package: Filter

class Omeka_Filter_Filename

implements Zend_Filter_Interface

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

Omeka_Filter_Filename::filter($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.

Omeka_Filter_Filename::renameFile($name)

Creates a new, random filename for storage in Omeka.

Parameters:
  • $name (string) –

Returns:

string