class DefaultAssetNameGenerator implements AssetNameGenerator (View source)

Basic filename renamer

Properties

protected string $filename

Original filename

protected string $directory Directory
protected string $name

Name without extension or directory

protected string $extension

Extension (including leading period)

protected int $version

Next version number to suggest

protected int $max

Maximum number to suggest

protected int $padding

Number of digits to prefix with 0, if padding

protected int $first

First version

Methods

public
__construct(string $filename)

Construct a generator for the given filename

protected
string
getPrefix()

Get numeric prefix

public
current()

No description

public
key()

No description

public
next()

No description

public
rewind()

No description

public
valid()

No description

public
int
getMaxTries()

Number of attempts allowed

Details

__construct(string $filename)

Construct a generator for the given filename

Parameters

string $filename

protected string getPrefix()

Get numeric prefix

Return Value

string

current()

No description

key()

No description

next()

No description

rewind()

No description

valid()

No description

int getMaxTries()

Number of attempts allowed

Return Value

int