Class constructor
Options argument may be either a string, a Zend_Config object, or an array. If an array or Zend_Config object, it accepts the following keys: ‘source’ => Source filename or directory which will be renamed ‘target’ => Target filename or directory, the new name of the source file ‘overwrite’ => Shall existing files be overwritten ? ‘randomize’ => Shall target files have a random postfix attached?
Parameters: | string|array|Traversable – Target file or directory to be renamed |
---|---|
Throws ExceptionInvalidArgumentException: | |
Returns the files to rename and their new name and location
Return type: | array |
---|
Sets a new file or directory as target, deleting existing ones
Array accepts the following keys: ‘source’ => Source filename or directory which will be renamed ‘target’ => Target filename or directory, the new name of the sourcefile ‘overwrite’ => Shall existing files be overwritten? ‘randomize’ => Shall target files have a random postfix attached?
Parameters: | string|array – Old file or directory to be rewritten |
---|---|
Return type: | ZendFilterFileRename |
Adds a new file or directory as target to the existing ones
Array accepts the following keys: ‘source’ => Source filename or directory which will be renamed ‘target’ => Target filename or directory, the new name of the sourcefile ‘overwrite’ => Shall existing files be overwritten? ‘randomize’ => Shall target files have a random postfix attached?
Parameters: | string|array – Old file or directory to be rewritten |
---|---|
Return type: | Rename |
Throws : | ExceptionInvalidArgumentException |
Returns only the new filename without moving it But existing files will be erased when the overwrite option is true
Parameters: |
|
---|---|
Return type: | string The new filename which has been set |
Throws : | ExceptionInvalidArgumentException If the target file already exists. |
Defined by ZendFilterFilter
Renames the file $value to the new name set before Returns the file $value, removing all but digit characters
Parameters: | string|array – Full path of file to change or $_FILES data array |
---|---|
Throws ExceptionRuntimeException: | |
Return type: | string|array The new filename which has been set |