BatchFileRename Libraryv1.0

BatchFileRename.php at line 1137

Class BatchFileRenameFileNameVariables

BatchFileRenameFileNameVariables

public class BatchFileRenameFileNameVariables

Contains the callbacks for the core filename variables.

Author:
Mohamed ELkholy
License:
LGPL
Since:
Release: 1.0

Method Summary
static string

count(object fileinfo, object renameinfo)

The callback of the <#> filename variable wich represents the file number with no leading zeros eg. 1, 3, 15.

static string

count2(object fileinfo, object renameinfo)

The callback of the <##> filename variable wich represents the file number with one leading zero eg. 01, 03, 15.

static string

count3(object fileinfo, object renameinfo)

The callback of the <###> filename variable wich represents the file number with two leading zeros eg. 001, 012, 025, 108, 245, 915.

static string

count4(object fileinfo, object renameinfo)

The callback of the <####> filename variable wich represents the file number with three leading zeros eg. 0001, 0035, 0125, 0548, 1215, 1500.

Method Detail

BatchFileRename.php at line 1148

count

public static string count(object fileinfo, object renameinfo)

The callback of the <#> filename variable wich represents the file number with no leading zeros eg. 1, 3, 15.

Parameters:
fileinfo - Object containing file information
renameinfo - Object containing renamed file information
Returns:
The value of the variable in the filename

BatchFileRename.php at line 1162

count2

public static string count2(object fileinfo, object renameinfo)

The callback of the <##> filename variable wich represents the file number with one leading zero eg. 01, 03, 15.

Parameters:
fileinfo - Object containing file information
renameinfo - Object containing renamed file information
Returns:
The value of the variable in the filename

BatchFileRename.php at line 1176

count3

public static string count3(object fileinfo, object renameinfo)

The callback of the <###> filename variable wich represents the file number with two leading zeros eg. 001, 012, 025, 108, 245, 915.

Parameters:
fileinfo - Object containing file information
renameinfo - Object containing renamed file information
Returns:
The value of the variable in the filename

BatchFileRename.php at line 1190

count4

public static string count4(object fileinfo, object renameinfo)

The callback of the <####> filename variable wich represents the file number with three leading zeros eg. 0001, 0035, 0125, 0548, 1215, 1500.

Parameters:
fileinfo - Object containing file information
renameinfo - Object containing renamed file information
Returns:
The value of the variable in the filename