category | Zend |
---|---|
package | Zend_Filter |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(string|array $options) : void
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 sourcefile 'overwrite' => Shall existing files be overwritten ?
string
array
Target file or directory to be renamed
addFile(string|array $options) : \Zend_Filter_File_Rename
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 ?
string
array
Old file or directory to be rewritten
\Zend_Filter_File_Rename
filter(string $value) : string
Renames the file $value to the new name set before Returns the file $value, removing all but digit characters
inherited_from | \Zend_Filter_Interface::filter() |
---|
string
Full path of file to change
\Zend_Filter_Exception |
---|
string
The new filename which has been set, or false when there were errorsgetFile() : array
array
getNewName(string $value, boolean $source = false
) : string
string
Full path of file to change
boolean
Return internal informations
string
The new filename which has been setsetFile(string|array $options) : \Zend_Filter_File_Rename
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 ?
string
array
Old file or directory to be rewritten
\Zend_Filter_File_Rename
_convertOptions(array $options) : array
array
array
_getFileName(string $file) : array
string
Filename to get the informations for
array
$_files
array()